The marked price of a watch is 30% above the cost price. When it is sold allowing 20% discount on it, there is a gain of Rs 150. Find the marked price and the cost price of them.​​