Let cherry pies be represented by c, and let lemon meringue pies be represented by m. This means Maria sold 4c and 2m for a total of 96. Also Cody sold 5c and 5m for a total of 170.
The cost of each item is now calculated by the following system of simultaneous equations;
This means the lemon meringue pies sold for $20 each. We shall now substitute for the value of m = 20 into equation (1);
Therefore, the cherry pie cost $14 each