We have a square
we can use the Pythagorean theorem in order to find y
then we clear y
In order to find x, we need to remember the interior angles of a square are equals to 90° and the diagonals divided this angle into equal angles in other words the value is 45°
so we have the next equation
the value of x=10