Final answer:
The Speaker of the House of Representatives becomes the president if the president and vice president are both unable to carry out their duties.
Step-by-step explanation:
According to the 25th Amendment to the United States Constitution, if both the president and the vice president are unable to carry out their duties, the Speaker of the House of Representatives becomes the president.
Learn more about the 25th Amendment and presidential succession