A and B started a business investingd RS 80000and RS 100000 respectively after 5month A invested 20000 more and after one more month B withdraw RS 20000.st the end of 9 months they wanted to divided the profit according to the capital they invested and B got RS 2000 more than A . find the total profit