Because Afrikaans verbs usually do not change form for different subjects the way English verbs sometimes do.
Compare:
The verb stays woon.
This is one of the simpler features of Afrikaans grammar compared with many other languages.
Op means on, and it is the normal preposition for being on a certain floor or level of a building.
So:
The die is the definite article, meaning the.
So word-for-word:
Because Afrikaans normally uses the definite article here just as English does in on the eighteenth floor.
So:
Without die, the phrase would sound incomplete or unnatural in normal standard Afrikaans.
Agtiende is the correct ordinal form of agtien (eighteen).
In Afrikaans, ordinal numbers are not all formed with just one single ending. Some take -de, some take -ste, and a few are irregular.
So:
Other examples:
So agtiende is simply the standard correct form you need to learn.
No. One useful thing in Afrikaans is that die is used as the definite article for the in a wide range of situations.
So unlike languages that have different forms for masculine, feminine, neuter, or plural, Afrikaans keeps things much simpler.
Here:
A helpful rough guide is:
agtiende ≈ akh-TEE-un-duh
A few notes:
If you want a rough pronunciation of the whole sentence:
Ons woon op die agtiende verdieping
≈ onts voan op dee akh-TEE-un-duh fur-DEE-ping
That is only an approximation, but it is a useful starting point.