A team played 38 matched in a football league. They won 22 matches and Lost nine matches. The rest of the matches were draws. The team scored three points for a win, one point for a draw and zero points for a loss. How many points did the the team score in the league