I want to sell my imac but i dont know how to reset it to factory settings
See > Preparing an old Mac for sale | Macworld
and/or > MacTalk - Preparing Your Old Mac for Sale
What to do before selling or giving away your Mac
Also See Thomas Reed's How to Prepare your Mac for sale
Retrieving data ...