x is larger than y.
thus xy pairs are
6,4
7,3
8,2
9,1
10,0
So
36 - 16 = 20
49 - 9 = 40.
x = 7, y=3
You can take it from here.
If you don't understand anything feel free to ask.
Also fix your latex in the future.
There's a latex buttonnext to "image"