An airplane leaves an airport and flies due west 150 miles and then 170 miles in the direction S 49.17°W. How far is the plane from the airport (round to the nearest mile)? (2 points) PLEASE HELP ASAP 30 POINTS!!!!!!! need full explanation and work

Answer:
299.99 miles
Step-by-step explanation:
Since the plane traveled due west,
The total angle is 49.17 + 90
Represent that with θ
θ = 49.17 + 90
θ = 139.17.
Represent the sides as
A = 170
B = 150
C = unknown
Since, θ is opposite side C, side C can be calculated using cosine formula as;
C² = A² + B² - 2ABCosθ
Substitute values for A, B and θ
C² = 150² + 170² - 2 * 150 * 170 * Cos 139.17
C² = 22500 + 28900 - 51000 * Cos 139.17
C² = 51400 - 51000 (−0.7567)
C² = 51400 + 38,591.7
C² = 89,991.7
Take Square Root of both sides
C = 299.9861663477167
C = 299.99 miles (Approximated)
Hence, the distance between the plane and the airport is 299.99 miles