In case anyone wants to know what RAM actually is, the best analogy is a roller coaster at an amusement park! If your CPU in your computer is the roller coaster, the RAM is the line system. It gets all of the data organized to be queued into the CPU (roller coaster) The longer the line system (more RAM) the more data (people/riders) can be lined up for the CPU to process (People can efficiently be put on the roller coaster).
That would be a better analogy for cpu cache, the way I like to think of it is, cache is like your home bookshelf, ram is like the local library, and ssd/hdd is like the major library (e.g. the great british library). The local bookshelf is really quick to get stuff but it only has a few books, the local library has even more books but it takes a bit longer to get to but you can get there quickly, the big national library is a hassle to get to but has everything you need. Cache holds everything the cpu needs for the next few executions. ram holds everything the cpu needs to get quickly, so lets say you have this really big program that needs more space than the cache has, the cpu tells the ram to store some images and instructions that it will need soon. The hdd/sdd stores everything else and the ram picks up data from there to send to the cpu.
RAM stands for random access memory which basically means that it’s a storage system in which everything on it can be loaded instantly any time. Whenever you open an app or go to a website, it gets loaded onto your ram which means you can keep using it without having to wait for it to load. The more RAM you have, the more/more-complex stuff you can have open at once.