You are given a function f(x) that is continuous on the closed interval [2,10] and differentiable on the open interval (2,10). If f(2)=5 and the average rate of change is bounded between -1 and 3, that is: -1≤f'(x)≤3, what is the smallest possible value for f(10)?