My mainboard does not work with two rams?

When I place my both rams in my main board , pc starts but shows black screen but when I take one of them, then it works fine.
I checked both rams respectively and both work fine when they are used separately.
Is there any solution to use both rams at a time?
