A spring can perform positive work when it is compressed and then released, causing a mass attached to it to move outward. In this scenario, the restoring force of the spring acts in the same direction as the displacement of the mass, resulting in positive work being done. The increase in kinetic energy of the mass confirms that positive work has occurred. However, once the spring extends beyond its equilibrium position, the restoring force reverses direction, leading to negative work. Thus, while springs typically do negative work when stretched, they can indeed do positive work under certain conditions.