AMC8 1994 Problem 24

A 2 by 2 square is divided into four 1 by 1 squares. Each of the small squares is to be painted either green or red. In how many different ways can the painting be accomplished so that no green square shares its top or right side with any red square? There may be as few as zero or as many as four small green squares.

Answer Choices
A. 4
B. 6
C. 7
D. 8
E. 16