Answer
$r=20\sqrt 2$
$x=20$
Work Step by Step
$sin~θ=\frac{opp}{hyp}$
$sin~45°=\frac{20}{r}$
$\frac{\sqrt 2}{2}=\frac{20}{r}$
$r=\frac{20}{\frac{\sqrt 2}{2}}=20\frac{2}{\sqrt 2}=\frac{40}{\sqrt 2}\frac{\sqrt 2}{\sqrt 2}=\frac{40\sqrt 2}{2}=20\sqrt 2$
$tan~θ=\frac{opp}{adj}$
$tan~45°=\frac{20}{x}$
$1=\frac{20}{x}$
$x=20$