math
posted by Jane on .
A corner store sells two kinds of baked goods: cakes and pies. A cake costs $14 and a pie costs $8. In one day, the store sold 12 baked goods for a total of $144. How many cakes did they sell?

14 c + 8 p = 144
c + p = 12 so p = (12c)
14 c + 8 (12c) = 144
solve for c