Below is an instruction that describes a task. Write a response that appropriately completes the request in English. Please answer in English.

### Instruction:
A basketball team won 40 games in their last competition. In the next competition, they won 5/8 times as many games as they won in their first competition. In the third competition, they won the same number of games as the sum of the first and second competition winnings. Calculate the total number of wins they had in the three competitions.

### Response:
If they won 40 games in the first competition, they won 5/8*40 = <<40*5/8=25>>25 games in the second season.
The total number of games won in the first two competitions is 40+25 = <<40+25=65>>65 games.
In the third competition, they won games equal to the sum of the games they won in the first two competitions, which totals 65 games.
The total number of games they won in the three competitions is 65+65=<<65+65=130>>130 games.
#### 130