Question:
A bag of sweets was shared equally among a group of 40 students. 12 of them gave away their share of sweets to the rest of the students. As a result, the rest of the students received 6 more sweets each. How many sweets were given to each student at first?