Luke had muffins and Luis had shortbreads. Both gave half of what they had to each other. Luke sold 9 muffins and Luis sold 26 shortbreads. In the end, the ratios of muffins to shortbreads for Luke and Luis were 1 : 4 and 1 : 2 respectively. How many muffins did Luke have at first?