Okay, imagine you have a really big train that needs to pull a lot of heavy stuff. One engine might not be strong enough to do it all by itself. So, people came up with a clever idea called the compound locomotive.
A compound locomotive is like having two engines in one train. One engine is smaller and weaker, and the other is bigger and stronger. They work together to pull the train.
When the train starts moving, the smaller engine gets it going. Once it's moving, the bigger engine takes over and does most of the work. But, the smaller engine still helps out by pushing exhaust steam into the bigger engine to keep it hot and running smoothly.
This teamwork makes the train move faster and more efficiently than just one big engine all by itself. And, that's how the compound locomotive works!