The respective ratio of cost price of articles A and B is 7:9. Article A was sold at a profit of 40% and article B was sold at a profit of 10%. If the total profit earned after selling both the articles (A and B) is Rs. 148, what is the difference between cost price of articles A and B?