Relation between SWAP and RAM
RAM is used to save data. CPU time is used to process data.
There is no relationship between CPU and memory usage. A process can occupy all CPUs of a system but use only a minimal amount of memory. Also, a process can allocate all memory available on a system but only use minimal CPU time. So there is no relation between both.