The cost of one pen is $3.5 and one ruler is $2
Represent pen with x, and rulers with y.
So, the equations are:
To solve for x and y, we start by multiplying the second equation by 2
[tex]2(2x + 7y = 21)[/tex]
[tex]4x + 14y = 42[/tex]
Subtract [tex]4x + 5y = 24[/tex] from [tex]4x + 14y = 42[/tex]
[tex]4x - 4x + 14y - 5y = 42 - 24[/tex]
Simplify the expression
[tex]9y = 18[/tex]
Divide both sides by 9
[tex]y = 2[/tex]
Substitute 2 for y in [tex]2x + 7y = 21[/tex]
[tex]2x + 7(2) = 21[/tex]
This gives
[tex]2x + 14 = 21[/tex]
Collect like terms
[tex]2x = 21 -14[/tex]
Evaluate like terms
[tex]2x = 7[/tex]
Divide both sides by 2
[tex]x = 3.5[/tex]
Hence, the cost of one pen is $3.5 and one ruler is $2
Read more about system of equations at:
https://brainly.com/question/14323743