word problem of rational algebraic equation