Your motherboard supports dual-channel memory architecture for better performance, but, in order for dual-channel to work, both RAM modules have to be the same capacity, ideally bought as a matched pair.
8GB + 16GB will work, but you won't get the performance benefits of dual-channel.
So ideally you need to use 2 x 8GB or 2 x 16GB.