Finding the length of the third side of a triangle