Determination of representation in the House of Representatives

What are the connections between slavery, the 3/5 Compromise, determination of representation in the House of Representatives, and the Electoral College?