# 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?

- 20
- 22
- 23
- 25
- 29

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?

- 50
- 51
- 52
- 53
- 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 x 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?

- 51
- 40
- 30
- 20
- 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 x 40 = 200 marbles in the drum.

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

The answer is (D).