Instructions: The task is to generate the correct answer for a given math problem.
Input: Problem: a invested $ 100 in a business after 6 months b invested $ 200 in the business . end of the year if they got $ 100 as profit . find a shares ?
Output:
$ 5