The number 3 will appear in the numbers 3, 13, 23, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 43, 53, 63, 73, 83, 93. In these numbers it appears 20 times.
we know that (3/4)x-----------> </span><span>was spent on candy and (5/6)[</span>(3/4)x]-------> <span>was spent on gummy bears (5/6)*(3/4)x=(15/24)x------> (5/8)x