Answer:
a. The 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 statements

Using eqn 1
c= 10-p
Putting in eqn 2

Putting p=4 in eqn 1

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