Answer:
Hayes lost the popular and electoral vote, but the South allowed him to be president if southern states were allowed to rewrite their constitution.
Explanation:
In the presidential election of 1876, Democrat Samuel Tilden ran against Republican Rutherford B. Hayes. At the end of election day, no clear winner emerged because the outcomes in South Carolina, Florida, and Louisiana were unclear. After a first count of votes, Tilden had won 184 popular and electoral votes, while Hayes had 165 votes, with 20 votes from four states unresolved. In Florida, Louisiana, and South Carolina, both parties reported their candidate to have won the state.
I hope this helps.