MARKED price of an electronic gadget = RS. 5700Discount percentage = 12%Price of an electronic gadget after discount == 5700 - 5700 × (12/100)= 5700 - 684= 5016Selling price of an electronic gadget = Rs. 5016Profit = Rs. 500⇒ Profit = S.P - C.P⇒ 500 = 5016 - C.P⇒ C.P = 5016 - 500⇒ C.P = 4516∴ the cost price of the gadget IS Rs. 4516.