a + b = 20 -----> a = 20 - b
18a + 10b = 15(20)
18(20 - b) + 10b = 300
360 - 18b + 10b = 300
8b = 60
b = 7.5
a = 20 - 7.5 = 12.5
Let's check.
18(12.5) + 10(7.5) = 300
225 + 75 = 300
Good thing I checked my answer, because I did it wrong the first time!