We are in a marriage bureau with a file of candidates to themarriage containing the following facts:

We are in a marriage bureau with a file of candidates to themarriage containing the following facts: • Paul is tall, brown and of age ripe. He likes classical music,the books of adventure and swimming. His future wife must be tall,with red hair and young. • Kevin is not very tall, fair and young. He likes rock’n’roll,the books of science fiction and tennis. His future wife should befair, young and not very tall. • Doug is small, brown and of ageripe. He likes jazz, the detective novels and tennis. He seeks asmall, fair woman of average age. • Alice is not very tall, fair and of average age. She likes anytype of music, the books of adventure and swimming. She seeks atall man, brown and of average age. • Eva is not very tall, fairand young. She likes rock’n’roll, books of science fiction, and allsports. She seeks a young man, fair and not very tall. • Lea is small, brown and of age ripe. She likes classicalmusic, the books of adventure and swimming. She seeks a brown man,not very tall and of age ripe. 1. Using PROLOG, express the facts above in the form ofpredicates. 2. It is considered that two people X and Y, of different sexes,are matched if : X is appropriate to Y and Y is appropriate toX.

X is appropriate to Y if: • X is appropriate physically to Y (height, color of hair andage of X are those which Y seeks)     and, • X and Y have the same tastes regarding music, literature andsport. Write a PROLOG program determining the matched couples. Example 1 :

| ?- match(X,Y). X = kevin Y = eva ? ; X = eva Y = kevin ? ; no . . .