When the cars are released from the chain and begin coasting down the hill, potential energy transforms into kinetic energy until they reach the bottom of the hill. As the cars ascend the next hill, some kinetic energy is transformed back into potential energy.