Let 'K' be the total number of sweets.
Given total number of students = 112
If sweets are distributed among 112 children,
Let number of sweets each student gets = 'L'
=> K/112 = L ....(1)
But on that day students absent = 32 => remaining = 112 - 32 = 80
Then, each student gets '6' sweets extra.
=> K/80 = L + 6 ....(2)
from (1) K = 112L substitute in (2), we get
112L = 80L + 480
32L = 480
L = 15
Therefore, 15 sweets were each student originally supposed to get.