X and Y invested in a business. They earned some profit which they divided in the ratio of 2: 3. If X invested Rs. 40,000, the amount invested by Y is :
A) 20000
B) 40000
C) 60000
D) 80000