Solving a word problem using a system of linear inequalities - Problem type 1