A mobile set after allowing a discount of 10% on its marked price, was sold at a gain of 20%,Had it been sold after allowing 20% discount,there would have been a profit Rs.350. Find the cost price and marked price of the mobile set.​