tower of babel math puzzle