If they won 40 games in the first competition, they won 5/8*40 = <<5/8*40=25>>25 games in their second season.
In the third competition, they won games equal to the sum of the games they won in the last two competitions, which is 25+40 = <<25+40=65>>65 games.
Since the total number of games they won in the first two competitions is 65, and they won 65 more in the third competition, they won a total of 65+65 = <<65+65=130>>130 in all competitions.
#### 130