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

game.state.start()

Example

Start state A
this.game.state.start(“A”)
So i change to state B
this.game.state.start("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?