Answer:
Newton's third law of motion states that for every action, there is equal and opposite reaction.
While space walking, when the astronaut gets detached from the space ship, she floats in space holding a wrench. In order to get back to the spaceship, she should throw the wrench in the opposite direction of the spaceship. This action would cause a reaction on her own body and she would be pushed away from the wrench and towards the spaceship. Thus, she can return back to the spaceship in this way.