You can use the law of sines: it states that in any triangle, the ratio between the length of a side and the sine of the opposite angle is constant:

We only need one of these equalities. Since B is a right angle, we have
. So, since we want to solve the equality for
, we focus on

Solving for
, we have
