Write a set of linear equations that intersect to form the enclosed shape.
Trapezoid

Also need for a square