how to do what's my rule?

You probably need to figure out the rule for each problem.