Matching object rotation with rotational offset?

Just to be clear, The initial setting of the rotation of B niw works, in that its rotation starts correctly once set with A’s rotation plus the offset. Once it starts rotating after that first frame however, it starts doing so by the correct amount, but along the wrong axis.