How does this math work? - eviltoast

There might be some simple explanation but i cannot figure it out.