Change between states paused and resume in the last change

Hi everybody I have a problem when i change into two states in phaser i use the function



Start state A“A”)
So i change to state B"B)
So I want to go back to the last action before I move on to the new stage
so how i can achieve this?