God answers prayers according to His will and plans, not necessarily our desires. Like an loving father, God knows what is truly good for us and may choose not to give us something even if we ask. We should have faith that God will provide what we need to reach His kingdom, and seek His kingdom above all else. When we read the Gospels and follow Jesus' teachings, we can better understand why some prayers are answered and others are not.