Answer
See below
Work Step by Step
Given: $B=42$ degrees
$c=16$
Thus, $C=90$
It is a right triangle. Hence, the sum of two non-right angles of a triangle is 90 degrees:
$A=90-B=90-42=48$ degrees
We know $\cos B=\frac{a}{c}\\
\rightarrow a=c\cos B=18\times \cos 42\approx 13.38$
Apply the Pythagorean theorem to find c:
$a^2+b^2=c^2\\b=\sqrt c^2-a^2\\c=\sqrt 16^2+(18\cos 42)^2\approx12.04$