Delta Air Lines said it will buy almost half of Virgin Atlantic for $360 million as it tries to catch up to rivals in the lucrative New York-to-London travel market.

Delta plans to form a joint venture with Virgin Atlantic so they can sell seats on each other’s flights, share the costs and profits, and set the flight schedules in ways that help both airlines. American Airlines has a similar deal with British Airways.