Thomas owns a certain number of books.If he buy enough of books to double his collection and then loans out half of his books,how many books does he have left?