We have,
The marked price of an article =500rs
Discount =5
Profit =25
Let the cost price of an article =xrs
Then,
We know that,
Discountprice=Markedprice−discount100×Markedprice
=500−5100×500
=500−25
=475
Now,
Discount=costprice+profitcostprice×100
475=x+25100x
475=x+14x
54x=475
x=475×45
x=380rs
Hence, this is the answer.