To find the number of offices on each floor (denoted as \( f \)), we can set up the equation based on the information given.
We know there are 18 floors and a total of 396 offices in the building. Therefore, we can express this relationship as:
\[ 18 \times f = 396 \]
To solve for \( f \), we can divide both sides of the equation by 18:
\[ f = \frac{396}{18} \]
Now, performing the division:
\[ f = 22 \]
So, the number of offices on each floor is \( f = 22 \).