Answer
$a\approx6.09$
$B\approx31.9^\circ$
$C\approx108.1^\circ$
Work Step by Step
1. Use the Law of Cosines to get $a=\sqrt {9^2+5^2-2(9)(5)cos(40^\circ)}\approx6.09$
2. Use the Law of Sines to get $B=sin^{-1}(\frac{5sin40^\circ}{6.09})\approx31.9^\circ$
3. Find the third angle $C=180-A-B\approx108.1^\circ$