Finding the length of a side using trigonometric functions