Ok, I'll try to get this started again.
Here's one way to prove it, but there's probably a simpler one. For each real number m, let L_m be the line through the origin with slope m, ie, the graph of y=mx. Let A be the subset of R such that for all m in A, L_m meets the graph of f(x). This is just the set f(x)/x, x in [2,4]. Since f(x)/x is continuous on [2,4], it has a min and max.
f(2)/2=f(4)/4=1, so if the min and max both occur at endpoints, f(x)/x is constant, ie, f(x)=x, and we're done. So assume that, say, the max occurs at an interior point c. Then it's easy to see if f'(c) is not equal to this max, we can get a bigger max by moving to a neighbor of c, a contradiction. Thus f'(c) is equal to the slope of the line through the origin meeting f(c), ie, this line is the tangent to f(x) at c.