1. Calculate the number of ways to choose chairs:The interior decorator needs to choose 2 chairs out of 5. This is a combination problem (order doesn't matter), and the formula for combinations is:
nCr = n! / (r! * (n-r)!)
Where n is the total number of items, and r is the number you choose.
So, the number of ways to choose 2 chairs from 5 is:
5C2 = 5! / (2! * 3!) = (5 * 4 * 3 * 2 * 1) / ((2 * 1) * (3 * 2 * 1)) = 10
2. Set up an equation:Let 't' be the number of tables in the warehouse. The decorator needs to choose 2 tables from 't' tables. The number of ways to do this is tC2.
We know that the total number of combinations of chairs and tables is 150. Since the choices of chairs and tables are independent, we multiply the number of ways to choose chairs by the number of ways to choose tables to get the total number of combinations:
(Number of ways to choose chairs) * (Number of ways to choose tables) = Total combinations
10 * tC2 = 150
3. Solve for 't':First, divide both sides of the equation by 10:
tC2 = 15
Now, use the combination formula for tC2:
t! / (2! * (t-2)!) = 15
Simplify:
(t * (t-1)) / 2 = 15
Multiply both sides by 2:
t * (t-1) = 30
Expand:
t^2 - t = 30
Rearrange to form a quadratic equation:
t^2 - t - 30 = 0
Factor the quadratic:
(t - 6)(t + 5) = 0
The possible solutions for 't' are 6 and -5. Since the number of tables cannot be negative, the number of tables is 6.
Answer: There are 6 tables in the warehouse.