solve the challenging math puzzle