If you pull out the cords from the bricks and the plugs are the same on both ends, then they are compatible.
If you can take a picture of both cords and post it here or in a dm, I could check for you.
Edit: I suspect it’s one of these cords referenced below, but I don’t know if you’re located in the US.
A C13 plug: https://www.amazon.com/Amazon-Basics-Computer-Monitor-Replacement/dp/B072BYGKZW
A C17 plug: https://www.amazon.com/Prong-Power-Cable-Compatible-Playstation/dp/B088K7YGVN