Identify the missing side lengths by using the parallel properties of the L-shaped polygon. The horizontal base segment is $7 + 2 = 9$ cm, and the vertical base segment is $12 - 3 = 9$ cm.
Sum all the outer boundary segments: $3 + 7 + 2 + 12 + 9 + 9 = 42$ cm.