The slope of the line for the relationship between trees and production has slope -2/5 and is
y=(1/5)(780-2x)
the production is P = (1/5)(780x-2x2)
production is maximized when 4x - 780 = 0 (i.e. when the derivative of production is 0)
You take it from here.