a , b and c start a business each investing 20000 . after 5 months a withdrew 10000 , b withdrew 15000 and c invests 5000 more . at the end of the year , a total profit of 58000 was recorded . find the share of b .