NASA's Hubble Space Telescope has gotten a rare peek at the aftermath of two cosmic collisions — and helped scientists solve a decades-old mystery.