A watch was sold on its marked price at a gain of 20% but after allowing 5% discount, there would have been RS 140 gained. At what price the shopkeeper purchased the watch?