5. Point $M$ divides the diagonal $A C$ of square $A B C D$ in the ratio $A M: M C=3: 2$. A line passing through point $M$ divides the square into two parts, the areas of which are in the ratio $9: 11$. In what ratio does this line divide the perimeter of the square?
Answer: $\frac{19}{21}$.

#