This real-life scenario resembles Tatooine from Star Wars.
NASA's Goddard Space Flight Center/Chris Smith (USRA)
But in recent decades, astronomers have located 14 Tatooine-like planets in the universe. Technically known as circumbinary planets, these orbit pairs of stars.