how do you find the rule to a f(x) problem?