How to do this do i have to use Cosine law ?

ANSWER:
4.9 cm
STEP-BY-STEP EXPLANATION:
Given:
a = 8.2cm
B = 31°
A = 90° - 31° = 59°
We calculate the length of side b by means of the law of sines, as follows:
[tex]\begin{gathered} \frac{a}{\sin A}=\frac{b}{\sin B} \\ \\ \text{ We replacing:} \\ \\ \frac{8.2}{\sin59}=\frac{b}{\sin31} \\ \\ b=8.2\cdot\frac{\sin31}{\sin59} \\ \\ b=4.9\text{ cm} \end{gathered}[/tex]The length of side b is 4.9 cm