Get the equation and eliminate the variable y to get it.
(x-2)? +(x+5-7)? =8
simplify
(x-2)? =4
Double-sided square
x-2= 2
x=4 y=9
x=0 y=5
Difficulties: How to determine the point M? Because the side lengths of the left right-angled triangle are 3, 4 and 5 respectivel