If you just have one VM (presumably Windows, with Delphi) running at any one time, and don't run a bunch of memory hogging apps (e.g. VS Code, most of the popular browsers etc), you can get by with 16GB. I did for years, but when I started often having more than one VM running at a time (as well as VS Code etc), I shifted to a 32GB machine.