Persons X, Y, Z and Q live in red, green, yellow or blue coloured houses placed in a sequence on a street.
Z lives in a yellow house. The green house is adjacent to the blue house. X does not live adjacent to Z. The yellow house is in between the green and red houses. The colour of the house X lives in is: