calculate area of triangle
area of triangle = 1/2 (base * height)
calculate area