When it comes to looking for solutions to problems, there can be a few options.
One is that we use our abilities and resources to look for solutions.
But when we come to a dead end, then we will realise that we need God's help and that is probably where prayer will come in.
But a spiritually wise person will know what to do when faced with problems.
In looking for solutions, the first option would be prayer.
Prayer is not the last option when everything else have failed.
The 1st reading says that if there are any wise or learned men among you, let them show it by their good lives, with humility and wisdom in their actions.
Humility means that we turn to God and wisdom means that we know God is our first option as well as the option that is necessary as He will show us the way to the solution to the problem.
And that is what Jesus also taught His disciples in the gospel - the necessity for prayer.
May we be wise and humble enough to have recourse to God in our need and to turn to Him as our first option.