The price of a book is $1 more than twice the price of a pen. The total price of 5 books and 4 pens is $47. Find the price of a pen and of a book. ​