According to the given conditions following 2 cases are possible. 1. Let the range of the function f are a,b,cinY such thata<b<c. It suggests that the function is strictly increasing.The number of ways of selecting three distinct numbers is 8C3=56 2. Another possibility is a=b<c or a<b=cThe number of ways of selection =8C2times2C1=56Therefore, the total number of ways =56+56=112