Sean had wafers and Vincent had cupcakes. Both gave half of what they had to each other. Sean sold 15 wafers and Vincent sold 36 cupcakes. In the end, the ratios of wafers to cupcakes for Sean and Vincent were 1 : 6 and 1 : 4 respectively. How many wafers did Sean have at first?