Seth had wafers and Wesley had cookies. Both gave half of what they had to each other. Seth sold 10 wafers and Wesley sold 28 cookies. In the end, the ratios of wafers to cookies for Seth and Wesley were 1 : 8 and 1 : 6 respectively. How many wafers did Seth have at first?