Answer:
64 pies sold
Explanation:
x = number of cakes sold
y = number of pies sold
Last weekend the bakery sold 118 total items
x + y = 118
Last weekend the bakery earned $1,932.
18x + 15y = 1,932.
Get rid of one of the terms, in this case x.
x + y = 118 becomes
18x + 18y = 2124
Subtract the equations from each other
(18x - 18x) + (18y - 15y) = 2124 - 1932
3y = 192
y = 64
Subsititue y into the orginal qeuation to solve for x and check it's right.
x + 64 = 118
x = 118 - 64 = 54
18(54) + 15(64) = 1932