begin%crops%

crops(corn,rye,sunflower,wheat):-
   15corn+8rye+10sunflower+15wheat<=3000,
   30corn+25rye+5sunflower+10wheat<=8000.

Profit(MAX(300corn+250rye+100sunflower+150wheat)):-
   crops(corn,rye,sunflower,wheat).
end%crops%