Under Section 76, part 7 of the Constitution, the president is required to appoint the leader of the majority party in the House of Representatives as prime minister. In the latter cases, the person appointed as prime minister must win a confidence vote within 30 days.