What budget/value CPU and MOBO to pick.

Im planning to do a budget setup for dualbooting WIN and MACOSX. For now i see that i can grab RX580 for 150-170$. Im looking now for mobo and cpu. For CPU i5 8400 got my attention. Is there any better value for money? I will also add SSD for every operating system and HDD for storage. 16GB DDR4 RAM is planned, but we will see how it goes. Can you help me out a little? Thanks in advance.

Author: @ionnny