If the legs have values x and y its area is ½·x·y and the sum of its legs is x + y
The area is equal to three times the sum of its legs: ½·x·y = 3(x + y)
Solving: xy = 6(x + y)
xy = 6x + 6y
xy - 6y = 6x
y(x - 6) = 6x
y = 6x / (x - 6)
Substituting values for x to get integral values for y gives:
(7, 42) (8, 24) (9, 18) (10, 15) (12, 12) (15, 10) (18, 9) (24, 8) (42, 7)
Removing the duplicates: (7, 42) (8, 24) (9, 18) (10, 15) (12, 12)
Finding the areas of these triangles and summing their answers will give the final answer.