Let's determine the positive integer values of $x$ and $y$ that satisfy the equation

$$
(x-6)(y-6)=18
$$

Based on this problem, determine the right-angled triangles whose sides can be expressed as integers and for which the measure of three times the perimeter is equal to twice the area.