A phone sold as "4/128" or "8 GB + 256 GB" has two kinds of memory.
RAM (the first, smaller number): working memory for open apps. More RAM keeps more apps open without reloading. 4 GB is basic, 6 to 8 GB is comfortable on Android, 8 to 16 GB on laptops.
Storage (the bigger number): where apps, photos, videos and files are kept. "Storage full" means this one. 64 GB fills fast with WhatsApp and videos. 128 GB or more is better.
"Extended RAM" or "virtual RAM" uses storage as extra RAM. It helps a little, but it's slower than real RAM.
You can usually add a memory card for more storage on Android, but you can't add RAM to a phone.