The lengths of the sides of triangle PQR are consecutive even integers. The perimeter of triangle PQR is 42 cm. What is the length of the longest side?