Describe the important elements of the Compromise of 1877. What did both sides get?

Describe the important elements of the Compromise of 1877. What did both sides get?