The correct option is
E Six
Given
A(G) B C D(G) E
STREET
F G H(G) I J
Let the houses be represented as above,
A(G), D(G), H(G) be the houses painted with gray.
To find the number of houses that cannot be painted gray,
Let us find the number of houses opposite and adjacent ( next to each other on the same side ) to the houses that are painted with gray.
As the houses opposite to each other cannot be painted with the same color.
′F′ is opposite of ′A(G)′
′C′ is opposite of ′H(G)′
′I′ is opposite to ′D(G)′
The houses ′C′, ′F′, ′I′ cannot be painted gray.
As the houses adjacent to each other cannot be painted with the same color,
′B′ is adjacent to ′A(G)′
′G′ and ′I′ are adjacent to ′H(G)′
′C′ and ′E′ are adjacent to ′D(G)′
The houses ′C′, ′E′, ′B′, ′G′, ′I′ cannot be painted gray.
Hence,
The houses ′B′, ′C′, ′E′, ′F′, ′G′, ′I′ cannot be painted gray.
Therefore, Number of houses among seven remaining houses that cannot be painted gray are ′6′.