Taking the difference of the both you can see that 2 kg of gummy bears would cost $18. So each kg of gummy bear is $9. Now subtract $9 from what Erika bought, and 3 kg of red hots are $12. So each kg of red hots are $4.
First you need to find the percent equivalent to that of the ratio. The ratio is 3:5. From there you would take the 3, and divide it by 5. 3/5=0.6. Apply that to the information that you are given: 8(0.6)=4.8.