Two ships, one sailing at 30 km/hr and the other at 45 km/hr, left port at the same time. Three hours later they were 120 km apart. If you had to find the angle between their courses an equation that could be used to solve this problem is:

Do you not have a triangle with sides

90, 135 and 120 ?

So use the cosine law starting with
120^2 = 90^2 + 135^2 - 2(90)(135cos A , where A is the angle opposite the 120

To solve this problem and find the angle between the courses of the two ships, we can use trigonometry.

First, let's consider the situation after three hours. The ship traveling at 30 km/hr has covered a distance of 30 km/hr x 3 hr = 90 km. The ship traveling at 45 km/hr has covered a distance of 45 km/hr x 3 hr = 135 km.

Now, let's construct a triangle using these distances. The triangle has one side with a length of 90 km, another side with a length of 135 km, and the angle between them (the angle between the two courses of the ships) that we need to find.

Using the law of cosines, we have the equation:

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

where c is the unknown side (120 km), a is 90 km, b is 135 km, and C is the angle between the courses of the ships.

Plugging the known values into the equation, we can solve for cos(C):

120^2 = 90^2 + 135^2 - 2 * 90 * 135 * cos(C)

Simplifying the equation:

-3750 * cos(C) = -11880

Dividing both sides by -3750:

cos(C) = -11880 / -3750

cos(C) = 3.168

Since the cosine function gives us the ratio of the adjacent side to the hypotenuse, we need to find the inverse cosine (or arccosine) of 3.168 to find the angle C. However, the value of 3.168 is not within the range of -1 to 1, so there is an error in the problem or the calculations leading to this equation are incorrect.