maximize x(1000000 - 50000(x-25))