A dealer purchase two fans for Rs. 24000. he sold one at a profit of 6% and the other at loss of 12%. the dealer gained nothing on his outlay. find the cost price of each fan.​