How can I avoid Gimbal Lock with Rotations?

Hi, any chance you could put up a screenshot of this solution? I’m having similar issues and am slightly puzzled at how you managed to solve it. Many thanks