how do I work it out ?

Answer:
x - y = 5
Explanation:
As you can see in the first problem the ration is x to y = 8 to 3. This means for every 8 x values, there are 3 y values. Therefore, x - y should be the same as 8 - 3, which is 5.