A plane flies between two cities with a wind speed of 18 km / h. It takes 2 hours and 50 minutes to fly along the wind and 3 hours to fly against the wind, The voyage between the two cities

A plane flies between two cities with a wind speed of 18 km / h. It takes 2 hours and 50 minutes to fly along the wind and 3 hours to fly against the wind, The voyage between the two cities

Let the speed of the plane be x km / h
17/6(x+18)=3(x-18)
17x/6+51=3x-54
17x+306=18x-324
17x-18x=-324-306
-x=-630
x=630
Then the distance is 3 (630-18) = 1836 km