$$\begin{array}{rlll}
\frac{cos42}{1}&=&\frac{1000}{x}\qquad&\mbox{ The x needs to be on the top so turn both sides upside down }\\\\
\frac{1}{cos42}}&=&\frac{x}{1000}\qquad&\mbox{ Multiply both sides by 1000}\\\\
1000\times \frac{1}{cos42}}&=&x\qquad&\mbox{ Get the answer with a calculator }\\\\
x&=&1345.6327\qquad&\mbox{ }\\\\
x&=&1346\qquad&\mbox{ To the nearest whole number }\\\\
\end{array}$$
$$\begin{array}{rlll}
\frac{cos42}{1}&=&\frac{1000}{x}\qquad&\mbox{ The x needs to be on the top so turn both sides upside down }\\\\
\frac{1}{cos42}}&=&\frac{x}{1000}\qquad&\mbox{ Multiply both sides by 1000}\\\\
1000\times \frac{1}{cos42}}&=&x\qquad&\mbox{ Get the answer with a calculator }\\\\
x&=&1345.6327\qquad&\mbox{ }\\\\
x&=&1346\qquad&\mbox{ To the nearest whole number }\\\\
\end{array}$$