Complex sentence: As a result, he and Bart are put in jail, where they learn Japanese and explore its culture until Marge pays the bail.
Split into simpler sentences: As a result, he and Bart are put in jail. They stay in jail, learning Japanese and exploring its culture until Marge pays the bail.