Final answer:
To use all the candy, the student needs approximately 0.21 bags of candy A, 0.5 bags of candy B, and 0.29 bags of candy C.
Step-by-step explanation:
To use all the candy, she needs to find a common denominator for the number of pieces in each bag. The common denominator for 180, 420, and 240 is 840. So, she needs to divide each of the three numbers by the common denominator to find the number of bags needed. 180 ÷ 840 = 0.2143, 420 ÷ 840 = 0.5, and 240 ÷ 840 = 0.2857. This means she needs approximately 0.21 bags of candy A, 0.5 bags of candy B, and 0.29 bags of candy C.