A garden is in the shape of a trapezium whose parallel sides are 40m and 22m and the perpendicular distance between them is 12m. Find the area of the garden