max of 30(2*sqrt(200)+sqrt(400-x^2))+40x