Two of the most expensive movies ever made were Titanic and Waterworld. The cost to make Titanic exceeded the cost to make Waterworld by $40 million. The combined cost to make the two movies was $360 million. Find the cost of making each of these movies.