๐Ÿ›’ Two carts collide โ€” momentum always survives, energy only if e = 1

Two carts meet on a frictionless rail. Total momentum p is conserved in every collision; kinetic energy KE is conserved only when the restitution e equals 1.
Step 1 โ€” the carts approach each other.
pbefore = 0 · pafter = 0 kgยทm/s
KEbefore = 0 · KEafter = 0 J
vโ‚ = 0 · vโ‚‚ = 0 m/s
p always conserved
KE conserved only at e = 1