Criteria For Trophy Win

Hi… I am not familiar with the criteria to win trophy by raiding bases…

There are some very easy defense which give me 5-6 trophies and then there also are some tough bases with only 3 trophies (but are so tough that i nearly die)… Player 126 attacks me and gets 8 trophies, I (lvl 92) attack him back and find that i can get only 2 trophies if I win (which i don’t, and die of course, because his defense is impossible to beat) and lose 32 trophies instead…

So, I got no help from FlaresGame officials, but I hope this community will inform me the criteria of winning trophies… Does it depend upon the toughness of the base we are raiding? Does it depend upon the level of player we are raiding? Does it depend upon the no. of trophies we have? What is the criteria???