Complex sentence: He is unable to understand what is happening and asks Ma'am to hide somewhere safe inside the house while trying to figure out a solution to the problem.
Split into simpler sentences: He is unable to understand what is happening and asks Ma'am to hide somewhere safe inside the house. While trying to figure out a solution to the problem.