FERMAT 2001 Problem 25

A square array of dots with 10 rows and 10 columns is given. Each dot is colored either blue or red. Whenever two dots of the same color are adjacent in the same row or column, they are joined by a line segment of the same color as the dots. If they are adjacent but of different colors, they are then joined by a green line segment. In total, there are 52 red dots. There are 2 red dots at corners with an additional 16 red dots on the edges of the array. The remainder of the red dots are inside the array. There are 98 green line segments. The number of blue line segments is

Image

Answer Choices
A. 36
B. 37
C. 38
D. 39
E. 40