Six different airlines fly from New York to Denver and seven flies from Denver to San Francisco. How many different pairs of airlines can you choose on which to book a trip from New York to San Francisco via Denver, when you pick an airline for the flight to Denver and air line for the continuation flight to San Francisco?