after distributing the sweets equally among 25 children , 8 sweets remain . had the number of children been 28 , 22 sweets would have been left after equal distribution . what was the total number of sweets ?