Which of these describes a comedy instead of a tragedy?
people experience many difficult situations
people die or suffer some serious loss
characters try to solve a problem together
problems are solved happily in the end.