Life is filled with difficulties and struggles; they are unavoidable. Perseverance through the struggle helps us grow.
Pain is a refining process that ultimately leads us to a richer life and wholeness. During this time when our faith is tested we need to gain understanding, which comes from God.
Sometimes when we ask for wisdom we are not willing to embrace the truth of reality as it is. Unless we are brutally honest we will never gain any meaningful insight, since our minds and hearts are closed. As a result we will flounder with no answers indefinitely.