Solving a word problem with two unknowns using a linear equation