How do you find the area of each triangle and know which one has the greatest area , if you have a perimeter of 12 units

Google Heron's formula

Area^2 = A^2 = S(S-a)(S-b)(s-c)
where
S = (1/2) perimeter = 6 here
so
A^2 = 6 (6-a)(6-b)(6-c)
so look for maximum of
(6-a)(6-b)(6-c)