# 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? ##### 2 Answers Jun 11, 2018 #### Answer: $8$number of cakes were sold. #### Explanation: Out of $12$baked goods sold , let the number of cakes sold be $x$in number and pies sold were $12 - x$in number. Total sell was $144 , $1$ cake costs $14 and $1$pie costs $8 :. 14*x + (12-x)*8=144 or 14 x -8 x =144-96 or

$6 x = 48 \therefore x = 8$

Therefore, $8$ cakes were sold [Ans]

Jun 11, 2018

$8$ cakes were sold

#### Explanation:

You can use two variables.

Let the number of cakes be $x$ and the number of pies be $y$

If $12$ baked goods were sold:

$x + y = 12 \text{ } \rightarrow \textcolor{b l u e}{x = \left(12 - y\right)}$

Using the price of each we can write the equation:

$14 \textcolor{b l u e}{x} + 8 y = 144$

$14 \left(\textcolor{b l u e}{12 - y}\right) + 8 y = 144$

$168 - 14 y + 8 y = 144$

$168 - 144 = 6 y$

$24 = 6 y$

$4 = y$

$4$ pies were sold and $8$ cakes were sold.

Check: $8 \times 14 + 4 \times 8 = 112 + 32 = 144$