Resolving gimbal lock without quaternions

Mind elaborating? What position? I am setting the object’s position, I just did not include that for the sake of example.