Answer
Captain James Cook died in Hawaii in 1779 and Captain George Vancouver died in London in 1798. William Broughton sailed with Captain Cook on his second voyage to the Pacific in 1772-1775 and with Captain Vancouver on his voyage of discovery to the Northwest Coast of America in 1791-1795. William Broughton was still alive in 1804 when he published a memoir of his voyage with Captain Vancouver.