Detailed Instructions: The task is to generate the correct answer for a given math problem.
Q: Problem: a and b began business with rs . 3000 and rs . 4000 after 8 months , a withdraws rs . 1000 and b advances rs . 1000 more . at the end of the year , their profits amounted to rs . 630 find the share of a ?
A:
240