Here's a hint for the last two optimization problems from WebAssign. Beware: my numbers might be different from yours. In my version, the yield per tree is 1000-20x for number 5.
Sorry for the error! Corrected version is now available!
Good luck!
Hint: optimization-hint