Detailed Instructions: You are given a math word problem and you are supposed to make use of mathematical concepts like probability, combinatorics, linear equations, sequences/series, or simple operators like addition, subtraction, division, or multiplication to answer the given question. Choose the best option from the 5 given options and report that option.
Problem:Question: A and B enter into a partnership with respective capitals of Rs. 20,000 and Rs. 40,000. At the end of the year, the total profit is Rs. 30,000. If A receives Rs. 15,000 as both his salary and profit, then what is his salary?

Option A: Rs. 2000

Option B: Rs. 4000

Option C: Rs. 5000

Option D: Rs. 3000

Option E: None of these
Solution:
Option C