Ryan sold half of his comic books and then bought sixteen more. He now has 36. How many comic books did Ryan start with?