Use the above build, but I would recommend with the money saved, get a ryzen 5 2400g cpu. It's a quad core, but has hyper threading, so it acts like an 8 core. And it will have better graphics.
Also, I would use the other money saved to get 16gb of ram instead of 8. If you wanted to put a little more money into it, you could get an SSD.