Read the following passage and solve the questions based on it.
Three men (Tom, Peter and Jack) and three women (Eliza, Anne and Karen) are spending a few months at a hillside. They are to stay in a row of nine cottages, which are facing north; each one living in his or her own cottage. There are no others staying in the same row of houses.
(i) Anne, Tom and Jack do not want to stay in any cottage which is at the end of the row.
(ii) Eliza and Anne are unwilling to stay beside any occupied cottage.
(iii) When Karen, Peter and Jack stand facing north, Karen finds that the cottage of both Peter and Jack are on her left-hand side.
(iv) Between Anne and Jack’s cottage there is just one vacant cottage.
(v) None of the girls occupy adjacent cottages.
(vi) The cottage occupied by Tom is next to an end cottage.
In how many different ways can their living arrangements be made?