Answer
$91,673,352mi$
Work Step by Step
Step 1. Use the figure given in the problem to assign quantities: use $S$ for the Sun, $E$ for the Earth, and $M$ for the moon, we have $\angle SEM=89.85^\circ$ and $EM=240,000 mi$
Step 2. In the right triangle $\Delta SME$, we have $cos89.85^\circ=\frac{EM}{ES}$, thus the distance between the Earth and the Sun is $ES=\frac{240000}{cos89.85^\circ}\approx91,673,352mi$