Fred sold half of his comic books and then bought six more.he now has 17.How many did he begin with?