rational function word problems