How this connects to AP Physics 1 (Topics 3.3 and 3.4): the spring stores PEs = ½kx². On the ramp the crate turns that energy into gravitational potential energy mgh, and any friction turns some of it into internal energy (Edis = f·d). Watch the four-color energy bar: the total never changes, but the colors do.