Two friends invested Rs. 1500 and Rs. 2500 in a business. They earned a profit of Rs. 800. One-half of the profit was divided equally between them and the other half was divided in proportion to their capitals. How much profit did each of them receive?