Area of rectangles and triangles