Center of mass answer

Sometimes in assembly problem center of mass answer co ordinate value)X,Y,Z) seems interchanged...

if the given answer is X=a,Y=b,Z=c

My answer is X=b,Y=c,Z=a

Some times negative value also derived like -3 instead of 3

How to fix this problem...?

May be something to do with orientation....