F, G, H, M, N and O live on six different floors of the same building. The lowermost floor in the building is numbered 1, the floor above it, number 2 and so on till the topmost floor is numbered 6. G lives on floor numbered 4. Only two people live between G and M. Only F lives between G and O. H lives immediately below G. How many people live between N and O?
Three
Start with the fixed fact that G is on floor 4. H lives immediately below G, so H is on floor 3.
Only F lives between G and O. The floors next to 4 are 3 and 5, and floor 3 is taken by H, so F is on floor 5 and O is on floor 6. Only two people live between G and M, and the only floor with two floors between it and floor 4 on the free side is floor 1, so M is on floor 1 (floors 2 and 3 lie between).
The only floor left is 2, so N lives on floor 2. The people between N (floor 2) and O (floor 6) are on floors 3, 4 and 5, which makes 3 people (H, G and F).
Check: from floor 1 to floor 6 the order is M, N, H, G, F, O, and every clue holds.
Hence, Three.
Read the following information carefully and answer the question that follows.
Five coaching classes — P, Q, R, S, and T — are located on five different floors numbered 1, 2, 3, 4, and 5, but not necessarily in the same order. Each coaching class teaches only one of the following subjects: Physics, Chemistry, Mathematics, Biology, and English, but not necessarily in the same order.
Based on the above information, determine on which floor Mathematics is taught.