Which sentence uses numbers correctly?
she was alive during both the 19 and 20 centuries.
she was alive during both the 19th and 20th centuries.
she was alive during both the nineteenth and twentieth centuries.
she was alive during both the nineteenth and twentieth centuries.