math puzzles and logic

x"