Please help me with this problem:

A basketball team scored 50 times in their previous game. The team earned points from making two-point field goals (baskets) and one point free throws. If the team scored 87 points in their last game,how many two-point baskets and free throws were made in the game?

1 answer

x @ 2pts
y @ 1pt

x+y = 50
2x+1y = 87