Four ways to get a rover or other vehicle unstuck from sand, rocks, or other terrain.
Frame 1, Astronaut(s) will have to first evaluate how bad the vehicle is stuck and what kind of tools they need to extract the rover.
Frame2, Is it minor enough for simple tools like a shovel or crowbar?
Frame 3 shows a more serious form of "stuck-ness" requiring a wheel lift. If they can successfully lift the stuck wheel(s), astronauts then fill the hole under the wheel with rocks and regolith. This allows the rover to settle back down on level ground. Gaining better traction.
Frame 4 shows the use of traction mats. The mats distribute the weight of the rover over a greater surface area. Even slightly covering the hole. Providing a nice flat surface for the wheels to get better traction.
Frame 5 shows a more serious event. Here a ground anchor is being used as a anchor point for the front winch. Ground anchors come in several configurations. Some are completely buried. Others slowly dig themselves firmly into the ground as they are being pulled. Which one to use depends on the situation and surrounding terrain. The idea is so the rover can pull itself out of and away from the trouble spot. All without another vehicle. The ground anchor also supports getting a vehicle unstuck from a ravine that may have been accidentally driven into.