I sold a book at a loss of 8%. Had i sold it for Rs 120 more, 7% would have been gained. Find the cost price of the book.