Elijah had biscuits and Jeremy had muffins. Both gave half of what they had to each other. Elijah sold 10 biscuits and Jeremy sold 20 muffins. In the end, the ratios of biscuits to muffins for Elijah and Jeremy were 1 : 8 and 1 : 6 respectively. How many biscuits did Elijah have at first?