Use a little bit of logic to find out the rule that links "input" and "output" in these math puzzles.