Gary bought a pen a book and a calculator. The book cost 2 times as much as the pen and the calculator cost $1 more than the book.He spent $16 altogether.What was the cost of the book?