Finding the area of a triangle or parallelogram in the coordinate plane