Complex sentence: When the sergeant gets to the shop, he hears a thumping sound inside the machine and commands Luigi to fix it.
Split into simpler sentences: When the sergeant gets to the shop, he hears there's a thomping sound inside the machine. He commands Luigi to fix it.