Math is lovely.
If the unit price of toffee is X yuan and the unit price of milk chocolate is Y yuan, then: 5X+3Y=62 and 3X+4Y=50 will be merged, and the answers are X=8.99 and Y = 5,88 (there is a mantissa strategy that I like considering the supermarket price, sorry, cold).