A invests ₹5000 for 6 months and B invests ₹4000 for 8 months. In what ratio should profit be divided?