William sold half of his comic book collection then purchased 10 more. He now has 24 comic books . How many books did William begin with?