Formulas:

Area of a rectangle:

Area of a triangle:

(base x height) / 2