Word problems about linear functions and inequalities