Oliver had muffins and Luke had wafers. Both gave half of what they had to each other. Oliver sold 11 muffins and Luke sold 25 wafers. In the end, the ratios of muffins to wafers for Oliver and Luke were 1 : 7 and 1 : 5 respectively. How many muffins did Oliver have at first?