The ratio between the perimeter of a right triangle and its area is 2:3. The sides of the triangle are integers. Find the maximum possible perimeter of the triangle.
If the sides of the triangle are $A$, $B$ and $C$ (the hypotenuse), I have deduced that:
$$A+B+\sqrt{A^2+B^2}=\frac{AB}{3}$$
I am stuck here. Any hints? From the above I know that $A^2+B^2$ should be a square and that $AB$ should be divisible by 3.