# Counting

**Note:**When counting elements that are in overlapping sets, the total number will equal the number in one group plus the number in the other group minus the number common to both groups. Venn diagrams are very helpful with these problems.

*If in a certain school 20 students are taking math and 10 are taking history and 7 are taking both, how many students are taking either math or history?*

*A. 20
B. 22
C. 23
D. 25
E. 29*

**Solution:**

By the principle stated above, we add 10 and 20 and then subtract 7 from the result. Thus, there are (10 + 20) â€“ 7 = 23 students.

The answer is (C).

**Note:**The number of integers between two integers inclusive is one more than their difference.

*How many integers are there between 49 and 101, inclusive?*

*A. 50
B. 51
C. 52
D. 53
E. 54*

By the principle stated above, the number of integers between 49 and 101 inclusive is (101 â€“ 49) + 1 = 53.

The answer is (D).

To see this more clearly, choose smaller numbers, say, 9 and 11. The difference between 9 and 11 is 2. But there are three numbers between them inclusiveâ€”9, 10, and 11â€”one more than their difference.

**Note: **

*Fundamental Principle of Counting:*If an event occurs

*m*times, and each of the m events is followed by a second event which occurs

*k*times, then the second event follows the first event

*m - k*times.

*A drum contains 3 to 5 jars each of which contains 30 to 40 marbles. If 10 percent of the marbles are flawed, what is the greatest possible number of flawed marbles in the drum?*

*A. 51
B. 40
C. 30
D. 20
E. 12*

There is at most 5 jars each of which contains at most 40 marbles; so by the fundamental counting principle, there is at most 5 â€” 40 = 200 marbles in the drum.

Since 10 percent of the marbles are flawed, there is at most 20 = 10% â€” 200 flawed marbles.

The answer is (D).