When all n teams in a league play every other team​ twice, a total of N games are​ played, where N=n2−n. A soccer league has 5 teams and all teams play each other twice. How many games are​ played?