In a class with 24 students, each students has 3 or 5 pencils. If there are 80 pencils in a class, how many students have 5 pencils?🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

1 answer

Let's assume that there are x students who have 3 pencils and y students who have 5 pencils.

We know that the total number of students is 24, so we can write the equation: x + y = 24.

We also know that the total number of pencils in the class is 80, which we can express as: 3x + 5y = 80.

To solve this system of equations, we can use substitution or elimination.

Let's solve it using elimination. Multiply the first equation by 3 to match the coefficients of x in both equations:
3x + 3y = 72.

Now subtract this equation from the second equation: (3x + 5y) - (3x + 3y) = 80 - 72.
This simplifies to: 2y = 8.

Divide both sides of the equation by 2 to solve for y: y = 4.

Substitute the value of y back into the first equation to solve for x:
x + 4 = 24.
x = 20.

Therefore, there are 20 students who have 3 pencils and 4 students who have 5 pencils.