there are 3 electorates, A B C. Gov wants to distribute funds according to.

let x,y,x=number in millions that electorate A,B,C receive.

cost=x+y+z,

total should not exceed 48 million, A should receive no less then 10 million, B should receive at least 5million more then C, and C should receive at least the average received by A and B. Then minimize the cost of the gov payouts.

Minimize: c=x+y+z

subject to: x>=10

x+y+z<=48

y-5x>=0

z-x/2-y/2>=0

x,y,z>=0

I dont think this is right, and there is a mistake somewhere but cant find it.