The reading of the scale at one end of the pencil is 3.0 cm and at the other end is 33.1 cm. The length of the pencil is: