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?

x @ 2pts

y @ 1pt

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

To solve this problem, let's assign variables to the unknown quantities.

Let's say the number of two-point baskets made is represented by 'x', and the number of free throws made is represented by 'y'.

We know that the team scored 50 times in total, so we can create an equation based on the number of baskets and free throws made:

x + y = 50 (Equation 1)

We also know that the team earned 87 points, with each two-point basket contributing 2 points and each free throw contributing 1 point. So, we can create another equation based on the points earned:

2x + y = 87 (Equation 2)

Now, we have a system of equations. To solve for 'x' and 'y', we can use one of several methods, such as substitution or elimination.

Let's use the substitution method:

1. Solve Equation 1 for 'y':
y = 50 - x

2. Substitute this value of 'y' into Equation 2:
2x + (50 - x) = 87

Simplifying the equation:
2x + 50 - x = 87
x + 50 = 87
x = 87 - 50
x = 37

3. Substitute the value of 'x' back into Equation 1 to solve for 'y':
37 + y = 50
y = 50 - 37
y = 13

Therefore, the basketball team made 37 two-point baskets and 13 free throws in their last game.