Let the number of cherry pies sold and
the number of peach pies sold. Then the information leads you to two equations:
and
Multiply the first equation by :
Add this to the second equation:
Substitute into the first equation: , so