word problems with rational functions