It should run both Sims 3 and Sims 4 okay, however hard drive space is a big concern.
The page says the system only has 128GB of hard drive space. Which is may not be enough to install and play both games with all packs, Store content for Sims 3, custom content and mods.
It would be better to have a 256GB hard drive or larger.
If you would like further help, check with the tech helpers over at AHQ.
AHQ's Sims 3 Tech Help Board
https://answers.ea.com/t5/Technical-Issues-PC/bd-p/the-sims-3