(i) 7×5=35, then 35−8=27, then 27÷3=9. The output is 9.
(ii) For input x the output is 35x−8, so
35x−8=14
Multiplying both sides by 3:
5x−8=42
Adding 8 to both sides:
5x=50
Dividing both sides by 5:
x=10
Check: 10×5=50, 50−8=42, 42÷3=14.
(iii) 35x−8=−6. Multiplying both sides by 3 gives 5x−8=−18. Adding 8 to both sides gives 5x=−10. Dividing both sides by 5 gives x=−2.
Check: (−2)×5=−10, −10−8=−18, −18÷3=−6. The input is −2.
(iv) Input 4: 4×5=20, 20−8=12, 12÷3=4. The output is 4, not 5, so Rohit's claim is wrong.
For output 5: 35x−8=5. Multiplying both sides by 3 gives 5x−8=15. Adding 8 to both sides gives 5x=23. Dividing both sides by 5 gives
x=523=453
Check: 523×5=23, 23−8=15, 15÷3=5.
(v) Undo each step, starting from the last one: multiply the output by 3, then add 8, then divide by 5. For example, output 14 gives 14×3=42, 42+8=50, 50÷5=10, the input found in (ii).