How were us senators elected at the time of 1787?

House of Representatives