If someone is sharing a problem with you looking for a solution, it is certainly your problem too, even if it is none of your business.
Also, if it is not your problem and you use the exact same sentence, there is a bigger problem to be solved than the real problem itself.