In short, you add all the rounds played and all your opponents (X), and all the games won by all your opponents (Y). Then you divide Y by X. This gives you your opponent's win %.
Opponent's opponent's win % is the same thing but for the opponents of your opponents.