Here is a number machine.
Verify that the output is 20 when the input is 3.
Verify that the input is 7 when the output is 44.
84 exam-style questions on AQA GCSE Maths Function Machines. Each one has a worked solution and a mark scheme showing where the marks go.