find the area of triangle such that area is maximum

Something is missing here.

The triangle of largest area is an isosceles right-angled triangle.
Just like the largest possible rectangle is obtained when that rectangle is a square.
So if you divide the square into 2 equal parts, it would result in right-angled triangles of 45°.