The ratio of the cost price of product A to that of B is 5:7. product A was sold at a profit of 80% and product B was sold at a profit of 20%. If the total profit earned after selling both the (products A and B is Rs 296) what is the difference between the cost prices of product A and B?