uhhh you follow the mouse and as you can see you create a right triangle.... you know what just search it up
i used my own code obviously i didn't come up with thales's theorem go thank thales actually he's dead but still