P and q started a business. the profits earned are divided in the ratio of their capital, 2:3. if p invested capital of $40,000, what was the capital invested by q?