length of side of a right angled triangle by trigonometry