So, initially 240[tex] \frac{3}{8} [/tex] -212 [tex] \frac{12}{3} [/tex] were empty:
this is :
[tex]240 \frac{3}{8} - 212 \frac{12}{3} = 240 \frac{3}{8} - 212 +4 = 240 \frac{3}{8} - 216= 24 \frac{3}{8} [/tex]
12/4 is 4 so that's why i substituted it with 4.
now, later 27 1/3 were used so we add this tho the original empty space
[tex] 24 \frac{3}{8}+ 27 \frac{1}{3}[/tex] = [tex] 24 \frac{9}{24}+ 27 \frac{8}{24}[/tex] = [tex] 51 \frac{17}{24}[/tex]
which is the result!