A purchased an article and sold it to B at 22% profit. B marked it up by 13% above the price at which A has purchased it and then sold it after giving a discount of Rs. 250. If B suffered a loss of 10% in the transaction, then find the cost price of the article for A.