let the farmer bought x kg of chemical A and y kg of B , so
x≥0.....(i)y≥0.....(ii)
Minimun nitrogen required =7
⇒10100x+5100y≥7⇒2x+y≥140......(iii)
Minimun phoshoric acid required =7 kg
⇒6100x+10100y≥7⇒3x+5y≥350.....(iv)
we have to minimise the cost
⇒z=5x+8y
from the graph critical points are A(50,40),B(0,140) and C(116.62,0)
At A
z=5(50)+8(40)=570
At B
z=0+8(140)=1120
At C
z=5(116.62)+0=583
Cost is minimum at A
So the farmer must bought 50 kg of chemical A and 40 kg of chemical B