Twelve buildings are arranged in two parallel rows of six each, facing each other. Row 1 consists of buildings A, B, C, D, E, and F facing east, while...
Question
Twelve buildings are arranged in two parallel rows of six each, facing each other. Row 1 consists of buildings A, B, C, D, E, and F facing east, while Row 2 has buildings J, K, L, M, N, and O facing west. Each building has a unique number of offices ranging between 5 and 28. Given the following clues:
- M is second to the right of the building with 15 offices.
- The number of buildings to the right of M is one less than the number of buildings to the left of L.
- L has a prime number of offices.
- The building facing M is second to the left of the building immediately right of D.
- F, which has 22 offices, is second from either end.
- The difference between the offices in F and L is 5.
- The number of buildings between D and F equals the number between J and L.
- K, with 12 offices, is second to the left of J.
- The difference between the offices in K and L equals the number of offices in B.
- C is third to the right of B, and B does not face M.
- C has 16 offices.
- O has two offices fewer than N.
- N has fewer offices than L.
- The number of offices in E is a multiple of 11.
- E is to the right of the building with 18 offices.
- The difference between the offices in O and A equals the number of offices in M.
- J has a perfect square number of offices and more than D.
- M has 15 offices fewer than J.
Question: Which building has the maximum number of offices?