The ratio of the price of a bag to the price of a book was 9: 4. During a sale, the prices of the bag and the book were reduced by $7 and $2 respectively. The ratio of the price of the bag to the price of the book became 2: 1. How much was the price of the bag at first?