@gychang :-
Despite everybody insisting that you should always run the fastest RAM possible - I believe DDR4 can go up to 3200MHz/3600MHz? - I've always found 2400 MHz to be perfectly adequate to the task of video editing.
When I bought this HP Pavilion mid-tower back in January 2020, after the old Compaq rig had finally expired, it came with just 4 GB DDR4; two slots available, but just one 4 GB stick installed. During the first year of the pandemic, that first got increased to 8 GB (2 x 4 GB).....then to 16 GB (2 x 8 GB), and eventually in November, I found a really good deal at Amazon on a Crucial 32 GB 'kit' (2 x 16 GB), for barely more than I paid Crucial for a 16 GB kit earlier in the year..!
Needless to say, I grabbed it.....especially since 32 GB is the maximum for this 'Lincs' 843b mobo. At that price, it was too good to pass up.
I could have gone for faster RAM, but it would have been a waste of money, given that the max supported speed is only 2400MHz anyway. Anything faster would have only got throttled back...
And it's not JUST the RAM clock speed. This Pentium G5400 is nominally dual-core, technically quad-core 'cos of HyperThreading, but it runs at nearly 4 GHz, and has a full modern set of CPU instructions (including virtualization, should I want to run a VM). Combine all that with the recently purchased 1 TB Crucial MX500 SSD, and from its humble, basic original configuration, it's now a killer machine for just about anything I could want it for.
So; to answer your question, the main thing is to make sure the clock speeds match.....and if you can keep all 4 sticks the same speed AND capacity, it should run in dual-channel mode (which is always good for a bit more speed and reliability).
Mike.