what is the frormula for area
Yep they're different.
For square : Base*Height
Triangle: Base*Height /2
The area of what?
The formulas for the areas of triangles, rectangles, circles, etc are different from each other.