Is my ram doa

hi i have a asrock b450 steel legend an a 32 gig kit of corsair vengeance lpx 3200 when i put both of the sticks in a2 and b2 the pc just turns on and after 30 seconds turns of i dont have post when i have one of the sticks in a2 the pc boots when i have the other stick in a2 the pc just turns on and turns off after 30 seconds is the motherboard bad or the ram?