Conversation so far:
Who did Gary Cooper become friends with?
Gary Cooper became friends with Ernest Hemingway.

Question: How did he become friends with Hemingway?
Self-contained rewrite: How did Gary Cooper become friends with Ernest Hemingway?