The x would equal 6 because if you substitue 6 for x and 2 for y, when you add them, it will be 8. Divide that by 2 and it will result in 4. And if you subtract 2 from 6, your answer will still be 4.
x+y/2
Substitute 6 for x and 2 for y
6+2/2
Add 6 and 2
8/2
Divide
Final Answer: 4
6-2
Subtract
Final Answer: 4
Since both of the answers result in 4, that is what makes x=6 and y=2 true.