Your systems are
Equation 1 for the number of boxes
x + y =10
Equation 2 for the weight
2x + 3y = 24
You can solve by Elimination or Substitution.
I will use Elimination below
If you multiply Equation 1 by negative 2 you can eliminate x and solve for y
Equation 1 multiplied by negative becomes
-2x - 2y = -20
Combine the above with Equation 2 to eliminate x
-2x - 2y = -20
2x + 3y = 24
Leaves
y = 4
Substitute this y back into the original Equation 1 to find x
x + y = 10
With the y value becomes
x + 4 = 10
Subtract 4 from both sides to solve for x
x = 6
x = 6 Boxes of magnets
y = 4 Boxes of Key Chains
I'll leave it to you to review the equations and numbers to answer b
Give it a try.