The lengths of two sides of a triangle are 5 and 11. If the length of the third side is also a whole number, what are the smallest and largest possible perimeters that the triangle can have?

(Source: Adapted from Mathematics Teaching in the Middle School, Mar-Apr 1997)