At a charity function, $42,000 was donated by companies A, B, and C in a 7:5:9 ratio. How many dollars did company B donate?
We have 7 + 5 + 9 = 21 equal parts
And B's donation was 5 of these
So
(5/21) * 42000 = $10000