This problem involves determining the occupants of six floors based on a set of logical conditions. We need to find who lives on the topmost floor (floor 6).
| Floor | Person |
| 6 | A |
| 5 | H |
| 4 | Y |
| 3 | G |
| 2 | S |
| 1 | P |
The topmost floor is floor 6, and A lives there.
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.