The math gag itself is hilarious, but it's also a great throwback to how Roshi specifically gave his students an education alongside martial arts training. He raised them to be well-rounded and streetsmart, not just muscleheads (although only partially in Goku's case)