Here are some resources to help you with optimization problems:
Videos from PatrickJMT:
Optimization 1 (area of a rectangle)
Optimization 4 (area of a rectangle with three sides fenced)
Optimization 5 (maximize volume of a box)
More videos: from Mathispowerful4u