Pirate Blackbeard's Lucky Flag
Pirate Blackbeard is preparing his ship for a perilous voyage in search of hidden treasure. According to ancient buccaneering superstition, the ship's flag must be a right-angled triangle with whole-number side lengths, and its area must be exactly equal to its perimeter, for good fortune at sea.
What is the largest possible area of such a flag that Blackbeard can make?
Enter your answer for the area: