The rent should be divided according to the equivalent animal-months used.
Step 1: Convert all animals to a common unit
Given:
Using cows as the common unit:
A's usage
20 horses for 5 months
20×25=50 cows
Cow-months:
50×5=250
B's usage
30 cows for 4 months:
30×4=120
45 sheep for 5 months:
45 sheep=345=15 cows
15×5=75
Total for B:
120 + 75 = 195
Step 2: Find the ratio of rent
A : B = 250 : 195 = 50 : 39
Total parts:
50 + 39 = 89
Therefore, A's share of the rent is
8950
of the total rent.