It is known that the ratio of A to B is 5: 4, and the price per kilogram is 30 yuan.
So among the 9 kilograms of mixed candy, there are 5 kilograms of candy A and 4 kilograms of candy B.
So 5x+4y=9*30 (1)
According to the ratio of A: B =3:2, the price per kilogram is 29 yuan.
Then there are 3 kilograms of candy A and 2 kilograms of candy B among the 5 kilograms of candy matched in this way.
So 3x+2y=5*29 (2)
(2)-( 1) * 2 Available:
x=290-270=20
Y=( 145-60)/2=42.5。
Therefore, the price of candy A per kilogram is 20 yuan; B candy is 45.5 yuan per kilogram.