Two people invested Rs 15000 and 25000 respectively to start a business. They decided to share the profits in the ratio of their investments. If their profit is Rs 12000. How much they each get?