RAM and ROM are the two types of primary storage in a computer. RAM, or random-access memory, allows both reading and writing of data and programs, making it the working memory. ROM, or read-only memory, only allows reading of permanently stored data and programs. Primary storage refers to the internal memory of a computer that can be directly accessed by the processor.