A, B, C, D, E and F live on six different floors of the same building. The lowermost floor in the building is numbered 1, the floor above it is numbered 2 and so on, till the topmost floor is numbered 6. Only three people live between C and F. A lives immediately above F. A lives on an even-numbered floor. C does not live on the lowermost floor. B lives immediately above D. On which floor does E live?
Floor number 6
Place the people one clue at a time. Exactly three people between C and F means their floors differ by 4, so the pairs of floors are (1, 5), (2, 6), (5, 1) and (6, 2), taken as (C, F) or (F, C) in either order.
A lives immediately above F, so F cannot be on floor 6. A lives on an even floor, so F must be on an odd floor, which means F is on 1 or 5. If F is on 5, C would have to be on 1, which is not allowed. So F is on floor 1, A is on floor 2 and C is on floor 5.
The remaining floors are 3, 4 and 6 for B, D and E. B lives immediately above D, so D is on 3 and B is on 4. That leaves E on floor 6.
Check: floors 1 to 6 hold F, A, D, B, C, E. Three people (A, D, B) live between F and C, A is directly above F, and B is directly above D.
Hence, Floor number 6.
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.