Use a little bit of logic to find out the rule that links "input" and "output" in these math puzzles. Compare the "in" numbers to the "out" numbers, determine the relationship, and then calculate for the missing numbers.