Five participants at an international conference are planning to take a car trip together. Two persons? the driver and one passenger? will sit in the front seat of the car, and three persons will sit in the back seat. The names of the five participants and all of the languages that each of them speaks are as follows:
Mohsen: Farsi and Hebrew
Orlando: Italian and Russian
Shelly: Hebrew and Russian
Theo: German and Italian
Ursula: Farsi, German, and Hebrew
The participants must be seated in the car according to the following restrictions:
The driver must be Orlando or else Shelly.
Two persons can be seated side by side only if at least one of the languages they speak is the same.
The organizers of a music festival are scheduling exactly six master classes, one class per day for six consecutive days. Three of the classes will be given by violinists and three by pianists. The only musicians who can teach the classes are the violinists F, G, H, and J, and the pianists R, S, T, W, and Z. The festival's organizers must observe the following constraints:
No musician will teach more than one class.
F will not teach unless the first three classes are taught by violinists.
If J teaches a class, it will be the sixth.
R will teach only if T teaches the first class.
No pianist will teach on a day that immediately precedes or immediately follows a day on which W teaches.