A farmer spends pounds 752 in buying horses and cows; if each horse costs pounds 37 and each cow pounds 23, how many of each does he buy?
Let the number of horses be x and and cows be y
According to question, we have
37x+23y=752 ....(i)
37x23+y=75223x+14x23+y=9+1623x+y+14x−1623=9
x and y are integers, because number of animals can only be an integer value
⇒14x−1623= integer
⇒70x−8023= integer
3x−3+x−1123= integer
⇒x−1123= integer
Let the integer be p
x−1123=px=23p+11 ........(ii)
Substituting value of x in (i)
37(23p+11)+23y=752⇒23y=345−851p⇒y=15−23p .......(ii)
We can see from (ii) that x<0 for integer p<0 and from (iii) y<0 for integer p>0
So, p can only be equal to 0
Substituting p=0 in (ii) and (iii)
⇒x=11,y=15
So, the number of horses are 11 and cows are 15.