Dayaan M. answered 26d
ACT Math Tutor with a Bachelor's in Computer Science, 5.0 Rated
Since you know two sides and the angle sitting between them, and the thing you want is the third side, this is a law of cosines problem. That is the pattern worth memorizing: two sides with the angle between them means law of cosines, while a side paired with the angle across from it means law of sines.
Picture the house as the corner where the 87° angle sits, with one line of sight running 1.9 miles to the restaurant and the other running 1.2 miles to the pier. The distance across the water is the side opposite that angle, so call it c:
c2 = a2 + b2 − 2ab·cos(C)
with a = 1.9, b = 1.2 and C = 87°. Filling it in one piece at a time keeps the arithmetic honest:
a2 + b2 = 3.61 + 1.44 = 5.05
2ab = 2(1.9)(1.2) = 4.56
cos 87° ≈ 0.0523
2ab·cos C ≈ 4.56(0.0523) ≈ 0.2387
So:
c2 ≈ 5.05 − 0.2387 ≈ 4.8113
c ≈ √4.8113 ≈ 2.1935
Rounded to the nearest tenth, it is about 2.2 miles from the pier across the water to the restaurant.
Check that your calculator is in degree mode before you trust the number. In radian mode cos 87 comes back around −0.82, the subtraction turns into an addition, and you get something over 2.9 miles. That is far and away the most common way this problem goes wrong.
There is also a nice sanity check hiding in this one. 87° is almost a right angle, and cos 90° is exactly 0, which would wipe out that last term completely and leave c2 = a2 + b2, which is just the Pythagorean theorem. Pythagoras would give √5.05 ≈ 2.2472 here, and our answer of 2.1935 sits a little below that, which is exactly what it should do. The angle is slightly less than 90°, so the two lines of sight lean a bit more toward each other and the far side comes out a bit shorter. That is really all the law of cosines is: Pythagoras with a correction term for when the angle is not 90°.
So, our final answer is about 2.2 miles.