The area and perimeter of a trapezoid ABCD where the equations of the lines AB, BC, CD, and DA are known