Perimeter:
O: perimeter
a, b, c: side lengths
Area:
h: height
g: base
The height is always perpendicular to the base.
You can choose any side to be the base.
Example where the height is inside the triangle
Example calculation that can be used for both cases above