Problem with 2 sticks of ram but not 1

Jan 31, 2019
6
0
10
I recently built a new pc. It works just fine when i have one stick of ram in but not two. Both sticks work just fine, and all of my dimm slots are working. But when i put both in, and turn my pc on, it will try to start up but then reset itself. I have an msi z370 gaming plus, and the ez debug lighting will say its a problem with my ram, then switch and say its a problem with my cpu.
Memory: patriot viper 4 8gb 3000mhz
Cpu: intel i3 8100
 
Jan 31, 2019
6
0
10
I did all of that. I made sure that they were in the right slots. I checked the manual and everything. It just wont boot. I also made sure i heard the click and made sure they were in all the way. No progress