The power supply from a 2009 Mac Pro should be compatible with your 2012 Mac Pro. That is assuming you’re using the A1289 model.
open