Sean had scones and Tim had macarons. Both gave half of what they had to each other. Sean sold 12 scones and Tim sold 38 macarons. In the end, the ratios of scones to macarons for Sean and Tim were 1 : 8 and 1 : 6 respectively. How many scones did Sean have at first?