Answer:
A. see instructions below
B. w = 3
Step-by-step explanation:
A. Apparently, your (machine instructions, algebra) are ...
(multiply by 5, 5w)
(subtract 6, 5w-6)
(divide by 3, (5w-6)/3)
(add 2, (5w-6)/3 +2)
(output the number, 5)
__
B. Working backward, we want to undo each instruction.
(subtract 2, 5-2 = 3)
(multiply by 3, 3·3 = 9)
(add 6, 9+6 = 15)
(divide by 5, 15/5 = 3)
(input the number, 3)
The equation (5w-6)/3 +2 = 5 has the solution w = 3.