how did the framers decide how many senators each state would have

They wanted to give each state equal representation in the Senate and decided that two people from each state would be senators.