- A32
- B8
- C40
- D20
Step-by-Step Solution
Walk backwards, undoing the last step first. B divided by 3 to reach 12, so before that it held ; B had added 4 to reach 36, so it received 36 − 4 = 32. That 32 is what A gave out. A had subtracted 8 to reach 32, so before that it held 32 + 8 = 40; A had multiplied by 5 to reach 40, so it received 40 ÷ 5 = 8. Checking forwards: , 40 − 8 = 32, 32 + 4 = 36, 36 ÷ 3 = 12. The traps: 32 is the number that left A, one machine short of the start; 40 is the value inside A after only its multiplication step; 20 comes from undoing the 'subtract 8' first, before B has been undone at all, and so applies A's step to B's output.
Answer: B) 8