Albert had macarons and Carl had scones. Both gave half of what they had to each other. Albert sold 14 macarons and Carl sold 36 scones. In the end, the ratios of macarons to scones for Albert and Carl were 1 : 6 and 1 : 4 respectively. How many macarons did Albert have at first?