That's Pythagoras' Theorem applied to the triangle shown
x
2
+ y
2
= 10
2