A player scored 100100 points in a single professional basketball game. He made a total of 6262 baskets, consisting of field goals (worth two points) and foul shots (worth one point). Find the number of field goals and the number of foul shots that the player made.