The volume of a pyramid whose base is a right triangle is 1071 units
3
3
. If the two legs of the right triangle measure 17 units and 18 units, find the height of the pyramid.