The scenario that shows an object gaining potential energy and losing kinetic energy is:
roller-coaster car slowing as it moves up a hill.
In this scenario, as the roller-coaster car moves up the hill, it is gaining height, which increases its potential energy. At the same time, it is slowing down, which means it is losing kinetic energy.