Let $G$ represent the event that it was the generous donor who was approached, and $E$ represent the event of getting an \$8 contribution from the donor from two different requests. We are given that $P(G)=1/7$, $P(E|G)=1$, and we can infer that $P(E|G^C)=1/25$ (since a typical donor has five equally likely donations). From this, we can calculate $$P(E)=P(E|G)P(G)+P(E|G^C)P(G^C)=\frac {1}{7}\cdot 1+\frac{6}{7}\cdot\frac{1}{25}=\frac{31}{175}$$ and from here Bayes' Theorem says $$P(G|E)=\frac{P(E|G)P(G)}{P(E)}=\frac{(1/7)\cdot1}{31/175}=\frac{25}{31}$$