It's a sensible system of equations:
Part of the answer is also written down, i.e. y=2. Subtitute it into the first equation and simple arithmetic gives x=8 (also visible behind the pencil, but hard to see). Which you can check using the second equation:
Also, one can check the answer using...