Two different sizes of square metal duct are joined by a piece that is a frustum of a pyramid. Find the lateral surface area, if the small end is square with one side of length 17 in. and the larger square end is of length 19 in. on one side with a slant height of 2 in.