A man purchases two clocks A and B at a total cost of Tk 650. He sells A with a 20% profit and B at a loss of 25% and gets the same selling price for both clocks. What are the purchasing prices of A and B respectively?