You need to go to your Motherboard's QVL List for 5000 Series RAM MEMORY.
The list shows you which specific RAM MEMORY part numbers are compatible with your Ryzen and Motherboard.
That list will show you what speeds your motherboard supports for each specific RAM Part number listed and whether you can Overclock the RAM in BIOS.
The list will also show you how many DIMM Slots each specific RAM Part number is compatible for your motherboard.