Work out the input of this function machine: ? -> -4 -> +6 -> 10

Check the final answer first, then review the worked steps.

Answer

8

Work

x - 4 + 6 = 10
x + 2 = 10
x = 8

Step-by-step solution

  1. Start from the output and work backward by reversing each operation.
  2. The last operation was $+ 6$, so subtract $6$ from the output: $10 - 6 = 4$.
  3. The first operation was $- 4$, so add $4$ to your result: $4 + 4 = 8$.