Mojave on such an old CPU is going to be painful at best. The graphics components of the modern GUI don't play well with such old hardware. Yes it's possible to patch yourself to get a more modern OS but you don't want to. May I ask why you're looking at such an old model?