We all have problems we face from time to time. God doesn’t always remove our problems. He makes a way for us to go through them. For example, when the Israelites were running from pharaoh they came upon the Red Sea. God didn’t remove the sea; he parted it so they could walk through it on dry land (Exodus 14:21-22).
Just because you still find yourself in an unpleasant situation even though you prayed about it doesn’t mean that God didn’t hear your prayer. Keep focusing on God and believing that he will help you. God will make a way and help you get through it.
“And we know that all things work together for good to them that love God, to them who are the called according to his purpose.” Romans 8:28