First draw a triangle, don't worry about the right angle, that comes later

Now we'll worry about the right angle...

Set the lengths of AB and BC to be **x** and **y**

Open the ** numeric panel** and add an expression.

Type in **distance(A,C)^2**

Add another expression.

Type in **x^2+y^2**

Change the numeric values of **x** and **y**