"An hour later, I had solved the unsolvable friendship equation."