Homework?
Also, I don't really understand the question.
RAM is volatile memory, meaning once no more power is supplied to it, it is erased.
Your hard drive is the storage medium for the program.
So, you access the program on the hard drive, once run, it is loaded into the RAM.
The RAM is not for physical storage, so the computer can read the data in the RAM very quickly and modify and change it ect...