A girls soccer league computes a team's points by averaging 5 points for a win, 2 points for a tie and 1 for a loss. If the Amazons have 22 points with 3 ties and 1 loss, how many games did they play.

22-7 = 15

15 / 5 = 3

3 + 3 + 1 = ?