The consecutive sides of a quadrilateral have lengths (17 - x), (24 - x), (40 - 3x) and (x + 1). If the quadrilateral is a parrelleogram, whats is its perimeter .

Please include work.