Question 1
8 people live across two buildings: Mansion (Amit, James, Ahmed, Avery) and Plaza Two (Riley, Iris, Jennifer, Jessica). Each building has 4 floors (1 to 4).
Based on these clues:
• Amit lives on a higher floor number than Iris
• James and Iris live on the same floor number (2)
• James lives in Mansion on floor 2
• In Mansion, James lives above Ahmed
• Ahmed lives in Mansion on floor 1
• In Mansion, Amit lives above James
• In Plaza Two, Riley lives above Iris
• James lives on a higher floor number than Jennifer
• In Plaza Two, Riley lives immediately above Iris
• Iris lives in Plaza Two on floor 2
• Avery and Riley live on the same floor number (3)
• In Mansion, Amit lives above Ahmed
• In Plaza Two, Iris lives above Jennifer
• In Mansion, James lives immediately above Ahmed
• Avery lives on a higher floor number than Jennifer
• In Plaza Two, Jessica lives above Iris
• Jessica lives in Plaza Two on floor 4
• In Mansion, Amit lives immediately above Avery
• In Mansion, Avery lives immediately above James
• In Plaza Two, Jessica lives immediately above Riley
• Riley lives in Plaza Two on floor 3
• Amit lives on a higher floor number than Riley
• In Plaza Two, Jessica lives above Riley
• In Mansion, Avery lives above James
• Amit lives in Mansion on floor 4
• Amit and Jessica live on the same floor number (4)
• In Mansion, Avery lives above Ahmed
• Avery lives in Mansion on floor 3
• Avery lives on a higher floor number than Iris
• Ahmed and Jennifer live on the same floor number (1)
• Amit lives on a higher floor number than Jennifer
• In Plaza Two, Riley lives above Jennifer
• In Plaza Two, Jessica lives above Jennifer
• In Plaza Two, Iris lives immediately above Jennifer
• In Mansion, Amit lives above Avery
• Jennifer lives in Plaza Two on floor 1
On which floor does Avery live?
Mansion floor->person: {1: 'Ahmed', 2: 'James', 3: 'Avery', 4: 'Amit'}. Plaza Two floor->person: {1: 'Jennifer', 2: 'Iris', 3: 'Riley', 4: 'Jessica'}.