posted by tony .
find two positive integers such that the sum of the first number and 4 times the second number is 1000 and the product of the numbers is as large as possible
let the second number be x,
let the first number be y
so y + 4x = 1000, ---> y = 1000-x
Product = xy
= 1000x - 4x^2
set it equal to zero and solve for x
comes out very nice.