Astrophysics: Recipe for a black-hole merger