Answer:
Well they didn't transfer any energy when they weren't touching and it didn't produce any energy if it didn't move. Since they are on top of each other they are causing momentum on each other creating kinetic energy.
Step-by-step explanation:
Hoping this help