To find leg $ b $ use formula:
$$ \tan \left( \alpha \right) = \dfrac{ a }{ b } $$After substituting $\alpha = 3^o$ and $a = 500\, \text{cm}$ we have:
$$ \tan( 3^o ) = \dfrac{ 500\, \text{cm} }{ b } $$ $$ 0.0524 = \dfrac{ 500\, \text{cm} }{ b } $$ $$ b = \dfrac{ 500\, \text{cm} }{ 0.0524 } $$ $$ b = 9540.5683\, \text{cm} $$