In a trapezoid, one of the bases is perpendicular to the height. The lengths of the bases are a and b, and the height is h. Additionally, one of the legs is on the same side as the perpendicular base and is parallel to the other base. Find the area of the trapezoid.