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
![c+p=10\ \ \ eqn\ 1\\5c+4p=46\ \ \ eqn\ 2](https://img.qammunity.org/2021/formulas/mathematics/high-school/z0klgm9zwnlw4hxjl41iyxtkoc8mszmmm6.png)
Using eqn 1
c= 10-p
Putting in eqn 2
![5(10-p)+4p=46\\50-5p+4p=46\\50-p = 46\\-p=46-50\\-p=-4\\p=4](https://img.qammunity.org/2021/formulas/mathematics/high-school/e1m5eonw0vg7a6hirgmi2az4exy4jeh2s3.png)
Putting p=4 in eqn 1
![c+p=10\\c+4=10\\c=10-4\\c=6](https://img.qammunity.org/2021/formulas/mathematics/high-school/wpndxuegh6mx20p8nmicy0s8216vycvy5e.png)
Hence,,
a. The system of equations is:
c+p=10
5c+4p=46
b. 6 cakes were sold.