Or you could just buy a new laptop for $800 and actually get a usable amount of RAM.
The specs on base tier MacBooks tend to be so bizarrely low it's laughable. Literally comparable to the PC I had over a decade ago (save for the CPU, of course). I don't know how they get away with it.
I mean,.seriously, why would any sane person spend $800 on a laptop with only a 256GB SSD and 8GB of RAM? That's literally the specs of an $800 laptop from 2013! Apple is blatantly scamming people and getting away with it.