Write linear functions: word problems