P,Q, R enter a partnership where they invest Rs. 20000, Rs. 30000, Rs. 40000 resp. P withdraws Rs. 10000 after 2 months, Q withdraws Rs. 15000 after 4 months and R withdraws Rs. 25000 after 8 months. What will be R’s share in the profit of Rs. 12474?