Consider the following number machine.

It performs the operations: multiply by 5, then subtract 12.
Work out the output when the input is 8.
Work out the input when the output is 18.
84 exam-style questions on OCR GCSE Maths Function Machines. Each one has a worked solution and a mark scheme showing where the marks go.