Answer:
a. Required system of equations is:
c+p = 10
5c+4p = 46
b. 6 cakes were sold
Explanation:
Let p be the number of pies and c be the number of cakes.
Then according to given statement " the store sold 10 baked goods"

And
"A cake costs $5 and a pie costs $4"

Using equation 1,

Putting this value of c in equation 2:

Putting p = 4 in equation 1

Hence,
a. Required system of equations is:
c+p = 10
5c+4p = 46
b. 6 cakes were sold