Lucinda has a coin collection. she sold 12 coins to a friend and bought 7 new coins. she then had 39 coins. How many did she have originally ​