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