On a team, 9 girls and 2 boys scored a total of 58 points. The difference between the number of points scored by the 9 girls and the number of points scored by the 2 boys is 50. Each girl scored the same number of points and each boy scored the same number of points. Find the number of points by each girl and each boy.