Complex sentence: He had trouble popping out from his box, so Doc found out that his clothes were stuck between the cogs of the music box.
Split into simpler sentences: He had trouble popping out from his box. Then Doc found out that his clothes were stuck between the cogs of the music box.