Level 3
At first, Xavier had 12 sweets and Thomas had 4 times as many sweets as Xavier. After they each received an equal number of sweets from their teacher, Thomas had thrice as many sweets as Xavier. How many sweets did their teacher give to both of them altogether?
4 m