MIchael had several books. He sold half of them, and then he bought $20$ books. Finally the number of his books wasn\textquotesingle t changed. How many books did he have at first? 
选项为:A:$$20$$  B:$$30$$  C:$$40$$  D:$$50$$  E:$$60$$  请回答其中一个选项.