Choose each partner’s capital, how many months it stayed in, and the profit. Each step prints one product, then the ratio, then the shares. The fourth step always shows what the ratio of the capitals alone would have paid, so you can see how far off it is.
₹6,000 for 12 months vs ₹12,000 for 6
72,000 each · 9,000 apiece
Set both months to 12 and the two readings agree exactly. Change one month and they part — that gap is the whole reason this chapter exists.