Question: what if the president and vice president both die?
Answer: Presidential Succession Act of 1792. Article II, Section 1, Clause 6 of the Constitution authorizes Congress to declare who should act as president if both the president and vice president died or were otherwise unavailable to serve during their terms of office.