A cruise ship sets a course N50°E from an island to a port on the mainland, which is c = 170 miles away. After moving through strong currents, the ship is off course at a position P that is N36°E and a = 90 miles from the island, as illustrated in the figure.

(a) Approximately how far is the ship from the port? (Round your answer to one decimal place.)

(b) In what direction should the ship head to correct its course? (Round your answer to the nearest whole number.)

using the law of cosines, the ship's distance x from the port is

x^2 = 170^2 + 90^2 - 2*170*90 cos 14°

Now just figure the coordinates of the ship and port to get the desired course.

That assumes that there are no cross currents for the rest of the trip.

To solve this problem, we can use the law of cosines in trigonometry. Here's how you can find the solution step by step:

(a) To find the distance from the ship to the port, we can use the law of cosines. The law of cosines states that in a triangle with sides a, b, and c, and angle C opposite side c, the following equation holds:

c^2 = a^2 + b^2 - 2ab * cos(C)

In this scenario, side c represents the distance from the ship to the port, which we need to find. Side a represents the distance from the island to the ship, which is given as 90 miles, and side b represents the distance from the island to the port, which is unknown.

We can substitute these values into the equation as follows:

c^2 = 90^2 + b^2 - 2 * 90 * b * cos(36°)

Now, we need to find the value of b. To do that, we can use the fact that the sum of the angles in a triangle is 180 degrees. Since the ship's course is at N50°E and at position P, which is N36°E, the angle between the course and the line from the island to the port can be found as:

180° - (50° + 36°)

Now we can substitute this angle into the equation:

c^2 = 90^2 + b^2 - 2 * 90 * b * cos(98°)

Now we can solve for c by taking the square root of both sides:

c = √(90^2 + b^2 - 2 * 90 * b * cos(98°))

Using the given information that c is 170 miles, we can set up the equation:

170 = √(90^2 + b^2 - 2 * 90 * b * cos(98°))

Now we can solve this equation to find the value of b:

b ≈ 197.7 miles

Therefore, the approximate distance from the ship to the port is approximately 197.7 miles.

(b) To find the direction the ship should head to correct its course, we need to determine the angle between the line from the ship to the port and the north, which we can call angle D.

To find this angle, we can use the law of sines. The law of sines states that in a triangle with sides a, b, and c, and opposite angles A, B, and C, the following equation holds:

sin(A) / a = sin(B) / b = sin(C) / c

In our scenario, we know side a (90 miles), side c (170 miles), and angle A (36°). We can set up the equation:

sin(A) / a = sin(D) / b

Substituting the values into the equation:

sin(36°) / 90 = sin(D) / 197.7

Now we can solve this equation to find the value of angle D:

sin(D) = (sin(36°) / 90) * 197.7

D ≈ arcsin((sin(36°) / 90) * 197.7)

D ≈ 36.8°

Therefore, the ship should correct its course to a direction of approximately N36.8°E.