Function domain word problems