Nivedita and Uma jointly started a business with capital Rs. 3000 and Rs. 5000 respectively. After 6 months, Nivedita inveted Rs. 4000 more in the business but uma has withdrawn Rs. 1000 after 6 months from the business. If the profit in 1 year be Rs. 6175, then find the profit of each of them.