A cashier collected $312 from the sale of 50 tickets. An adult ticket
cost $8. A child ticket cost $4. How many tickets of each type did the cashier sell?
a = adult tix price total = $ 8a
c = child tix = 50 - a price total = $ 4 (50-a) summed , they equal $312
8a + 4(50-a) = 312
4a + 200 = 312
a = 28 then c = 50 -a = 22