@timur,
The unitary method is pretty useless if the total does not divide "nicely".
Better to use $x:20 as $21:12
NB I note that both of the questions here are equivalent to UK 11 year old level. I'm just wondering how old the questioner is, whose homework we are doing.