A started a business with an investment of Rs. 16000. After 2 months B also became his partner an invest 5/8th of the amount invested by A . Again after 2 more months C entered into the partnership with Rs . 8000. After 10 months they had a profit of Rs . 6336. Find the share of B in the profit.