7.1. In a football tournament, 20 teams participated. Each team played one match against each other. A team receives 3 points for a win, 1 point for a draw, and 0 points for a loss. After the tournament, Vasya calculated the total points scored by the teams. It turned out to be 500. How many matches ended in a draw?