The legs of a right triangle are the sides that are connected to the 90 degree (right) angle. The remaining side is called the hypotenuse.
Another way to look at it is the two legs of a right triangle are the two shorter sides. The longest side is the hypotenuse.