Mr. Krishan is a farmer in Haryana. He produced 35,000 kg of wheat in his farmlands, out of which 500 kg of was wasted, 1,500 kg was used for seed requirements, and 500 kg was utilised in feeding cattle. Find the net production of foodgrains to calculate the availability of foodgrains.