The processor, also known as the CPU, provides the instructions and processing power the computer needs to do its work. RAM provides the shorter-term memory the CPU needs to open files and move data around as it responds to the tasks given to it by your apps.
Both RAM and the CPU work synchronously and complementarily to ensure that your computer’s performance fits your needs and you have a good experience when using your device.