Arturo O. answered  04/07/20
Experienced Physics Teacher for Physics Tutoring
w = number of boxes of wrenches at $110 per box
h = number of boxes of hammers at $309 per box
w + h = 27
110w + 309h = 5955
You have a system of 2 equations in 2 unknowns w and h, which you can solve by substitution, elimination, matrix methods, or Cramer's rule. Using Cramer's rule, I get
w = 12
h = 15
Test the solution