Understanding area of a triangle