A school bought many boxes of 100 candies each. The teachers opened all the boxes and gave 14 candies to each student, with 2 candies leftover at the end. The receipt shows the school bought 10{*} boxes of candies where the units digit, represented by {*}, was covered by a chocolate smudge. How many boxes of candies did the school buy?
Thanks for helping- Explain your answer too.
school bought 100 * (100 +x ) candies
by brute force x = 6 106 boxes
(10 000 +100x) mod 14 = 2 10600 mod 14 = 2