Apply the trigonometric function:
Sin (angle) = opposite side / hypotenuse
Replacing:
Sin 45 = x/4
Sin 45 (4)= x
x= 2.83
1.6m questions
2.0m answers