Solution 1
We work backwards through the given information.
At the end, there is 1 candy remaining.
Since 65 of the candies are removed on the fifth day, this 1 candy represents 61 of the candies left at the end of the fourth day.
Thus, there were 6×1=6 candies left at the end of the fourth day.
Since 54 of the candies are removed on the fourth day, these 6 candies represent 51 of the candies left at the end of the third day.
Thus, there were 5×6=30 candies left at the end of the third day.
Since 43 of the candies are removed on the third day, these 30 candies represent 41 of the candies left at the end of the second day.
Thus, there were 4×30=120 candies left at the end of the second day.
Since 32 of the candies are removed on the second day, these 120 candies represent 31 of the candies left at the end of the first day.
Thus, there were 3×120=360 candies left at the end of the first day.
Since 21 of the candies are removed on the first day, these 360 candies represent 21 of the candies initially in the bag.
Thus, there were 2×360=720 in the bag at the beginning.
Solution 2
Suppose that there were x candies in the bag at the beginning.
On the first day, 21 of the candies are eaten, which means that 1−21=21 of the candies remain.
Since there were x candies at the beginning of the first day, there are 21x candies at the end of the first day.
On the second day, 32 of the remaining candies are eaten, which means that 1−32=31 of the candies from the beginning of the day remain at the end of the day.
Since there were 21x candies at the beginning of the second day, there are 31×21x=61x candies at the end of the second day.
On the third day, 43 of the remaining candies are eaten, which means that 1−43=41 of the candies from the beginning of the day remain at the end of the day.
Since there were 61x candies at the beginning of the third day, there are 41×61x=241x candies at the end of the third day.
On the fourth day, 54 of the remaining candies are eaten, which means that 1−54=51 of the candies from the beginning of the day remain at the end of the day.
Since there were 241x candies at the beginning of the fourth day, there are 51×241x=1201x candies at the end of the fourth day.
On the fifth day, 65 of the remaining candies are eaten, which means that 1−65=61 of the candies from the beginning of the day remain at the end of the day.
Since there were 1201x candies at the beginning of the fifth day, there are 61×1201x=7201x candies at the end of the fifth day.
Since 1 candy remains, then 7201x=1 which gives x=720, and so there were 720 candies in the bag before the first day.