Tanya and Pete had a "best of three games" bowling contest. Tanya beat Pete by 7 points in the last game. Pete won the second game by and by 14 points in the last game. Peter won the second game by 10. If Tanya’s total score after three games was 522 points, how many points did Pete have after three games?