Solving a system of equations word problem