Romans 9 explains this as much as our human mind can comprehend. These difficult questions are not new but addressed 2,000 years ago. It's not easy to understand and i still question them myself. But if theology was merely based on logic, everyone would have the same religion by now. If faith was easy, it wouldn't be faith...