Not to pile on...
Ram is sold in kits for a reason.
A motherboard must manage all the ram using the same specs of voltage, cas and speed.
The internal workings are designed for the capacity of the kit.
Ram from the same vendor and part number can be made up of differing manufacturing components over time.
Some motherboards, Particularly ryzen can be very sensitive to this.
Ryzen depends very much on fast ram for performance.
Since you will be buying a 2 x 16gb kit of ram with the same specs, why not try adding your old ram, one stick to each channel, and see how it does.
You may have to increase the default ram voltage a bit.
If it seems to work give it a solid test.
Run memtest86 or memtest86+
They boot from a usb stick and do not use windows.
You can download them here:
MemTest86 is the original self booting memory testing software for x86 and ARM computers. Supporting both BIOS and UEFI, with options to boot from USB.
www.memtest86.com
Memtest86+ is an advanced, free, open-source, stand-alone memory tester for 32- and 64-bit computers (UEFI & BIOS supported)
www.memtest.org
If you can run a full pass with NO errors, your ram should be ok.
Running several more passes will sometimes uncover an issue, but it takes more time.
Probably not worth it unless you really suspect a ram issue.
If no joy, I would keep the old ram as a spare or for a second build.
You can sell it on ebay, but it is probably not worth the hassle if you are not an ebay user.