First, draw a diagram of the situation to visualize the problem:
Notice that the triangle ASB is a right triangle because the angle ASB has a measure of 90º. The segment SP is perpendicular to AB, then the triangles BSP and ASP are also right triangles.
Notice that:
[tex]\sin (\angle SAP)=\frac{SP}{SA}=\frac{x}{SA}[/tex]On the other hand:
[tex]\sin (\angle ABS)=\frac{SA}{AB}[/tex]Isolate SA and replace AB=18 and ABS=54º:
[tex]SA=AB\cdot\sin (\angle ABS)=18\cdot\sin (54º)[/tex]From the first equation, isolate x and replace the value of SA and the measure of the angle SAP=36º:
[tex]x=SA\cdot\sin (\angle SAP)=18\cdot\sin (54º)\sin (36º)[/tex]Use a calculator to find the value of x:
[tex]x=18\cdot\sin (54º)\cdot\sin (36º)=8.5595\ldots\approx8.6[/tex]Therefore, to the nearest tenth of a mile, the distance from the ship to the shore is 8.6 miles.