From the perspective of a masters student, so bare that in mind. I think the question you would want to ask yourself is the following: "Does the student need your help with technical solutions or want your help with technical solutions?" Assuming it's need, and depending on the situational context, and assuming that it is not an urgent matter, then you could try to help that student by helping them to think through the technical aspects of the problem or perhaps providing a resource that you are familiar with because it sounds that you are at least familiar with the material. If the student is in the want category, then you will need to think about a way to make that student understand that expedience is not always the best path forward.
This could also be a learning opportunity for you as well to figure out how you can be a better advisor in the relationship and in this moment. It could be as simple as telling the student that, if they put some serious effort into the problem, that you believe in their capabilities to solve their problem - a boost of confidence from a peer can really go a long way for a student.
But the student-advisor is a relationship that cuts both ways, and like any relationship, requires a significant degree of communication and transparency to make things work. If you took on the responsibility to advise the student, then I believe you have an obligation to that student to communicate openly with them. But again, I think from a students perspective, the advisor is there to help students work through a struggle and adapt a researchers mentality.