Prove that there are exactly three right-angled triangles whose sides are integers while the area is numerically equal to twice the perimeter.