Quantitative Aptitude: Person A invests $30,000 one time initially and Person B invests $3,000 per month for 10 times. Hence, at the end, both have invested $30,000. If the profit is $10,000, then how should the profit be divided at the end of 10 months?