In the figure, all of the outside squares of a 3 x 3 square are shaded. One square is not shaded. If all of the outside squares of an m x m square were shaded, express the number of shaded squares in terms of m.

(Source: Mathematics Teaching in the Middle School, Feb 1997)