Check the final answer first, then review the worked steps.
\frac{7}{x} = \frac{42}{30} \implies \frac{7}{x} = \frac{7}{5} \implies x = 5