Neave had macarons and Wesley had biscuits. Both gave half of what they had to each other. Neave sold 9 macarons and Wesley sold 31 biscuits. In the end, the ratios of macarons to biscuits for Neave and Wesley were 1 : 5 and 1 : 3 respectively. How many macarons did Neave have at first?