Change CFrame to Rotate around a different Axis

I feel like this is such a nub question, but I just can’t seem to figure it out, and search engines have never been friendly to me.

So I have an animation with CFrames. I am trying to use it on a new model, where the bones are oriented a different direction.
In the original, it appears as though the joints rotate around the X axis, but with the different orientation, in the new one, it appears they rotate around Y axis.

So… I assume (will experiment) if I can just switch the rotation from one axis to another this will solve the problem, but I have no idea how to do this.

First I would need to determine what the rotation is on the X, then apply it to the Y, or switch them, or maybe there is a mathematical formula.

Thanks for any help

Found the answer.