for a math puzzle