David started a software business by investing Rs. 50,000. After six months, Julia joined her with a capital of Rs. 80,000. After 3 years, they earned a profit of Rs. 24,500. What was David's share in the profit?
A. Rs. 9,423
B. Rs. 10,250
C. Rs. 12,500
D. Rs. 10,500