Finding the area of a trapezoid on coordinate plane