A man bought two books for RS 1040. He sold one at a loss of 15% and other at a profit of 36% then he found that each book was sold for the same price. Find the cost price of each book.​