You can’t! It is human to want to fix problems but try not to take this responsibility on your shoulders. You can offer a listening ear and don’t underestimate how valuable this can be. Remember that we can’t solve someone else’s problems for them, but can offer time and care which might be part of the solution that they find for themselves.