The number of trees that should be planted can be found by plotting the above function and taking its maximum (t, P), which would then give the maximum number of trees and the maximum profit.

The number of trees that should be planted to maximize profit is 2400, with the maximum profit being $230,000.