Reading a function machine

Function machine with input 6 passing through a multiply by 4 box and a subtract 2 box to give output 22, with 24 shown as the intermediate value

A function machine is a quick way to show a rule. The input goes in on the left, each box tells you an operation, and the output comes out on the right.