设f(x)=min{2∧x,x+2,10-x}(x≥0),求f(x)最大值