Let us assume cost of each pineapple cake = $x.
Cost of each chocolate cakes = $y.
On weekdays 45 pineapple cakes and 62 chocolate cakes were sold.
Total cost of 45 pineapple cakes and 62 chocolate cakes were sold = $3,520.
Therefore, first equation would be
45x + 62y = 3520 --------------equation(1).
On weekends 55 pineapple cakes and 79 chocolate cakes were sold.
Total cost of 55 pineapple cakes and 79 chocolate cakes were sold = $4,415.
Therefore, second equation would be
55x + 79y = 4415 --------------equation(2).
<h3>Therefore, system of equation are 45x + 62y = 3520 and 55x + 79y = 4415.</h3><h3>And we can form a matrix as</h3>
.