In a science class, 40% of the students received a grade of A, 30% received a grade of B, and 20% received a grade of C on a project. The others fell short of a passing grade. a. If 12 students received an A, how many students were in the science class? b. How many students received a failing grade?