Let "C" be the number of oz of creamed corn and "S" be the number of oz of squash, per serving.
"ounce of cream corn provides 1/2 gram of protein" and "An ounce of squash supplies 1/4 gram of protein" so C oz of corn and S oz of squash provide C/2+ S/4 grams of protein.
"provide at least 3 grams of protein" so you must have
And ounce of cream corn costs .04" and "An ounce of squash costs .03" so C oz of corn and S oz of squash cost .04C+ .03S.
"cost no more that .36 per serving" so you must have .
"For taste, there must be at least 2 ounces of corn and at least as much squash as corn." so and .
"minimize the amount of ingrediants used per serving"
Minimize C+ S.