PASCAL 2016 Problem 3

In the diagram, the 5\times6 grid is made out of thirty 1\times1 squares. What is the total length of the six solid line segments shown?

Image

Answer Choices
A. 6
B. 12
C. 16
D. 18
E. 20