This sentence is troubling:
The price of all the chocolates to the price of all the lollipops was in the ratio of 5 to 2.
One might have to assume you really mean, "cost" and not "price".
PRICE(cents) AMOUNT COSTS
CHOCOLATES 5y/(7x) 7x 5y
LOLLIPOPS 2y/(4x) 4x 2y
DIFFERENCE 15
One useful equation would be
Maybe want to change the form using ;
--------------Can you find some whole numbered solution? More than one solution, as whole numbers?
Something still seems off here.