A furniture dealer sold a cupboard for Rs. 8832 after allowing 8%

A furniture dealer sold a cupboard for Rs. 8832 after allowing 8% trade discount and 4% cash discount. If he made 38% profit, find the cost price and the marked price of the cupboard.