Find the largest x such that $$3\sqrt{3x^2+2x+36}+\sqrt{3x^2+2x-36}=40.$$
not sure how to explain it but the answer is 5