This function is a piece-wise function, that means it has different expressions for each interval of x.
In order to find f(8), we need to identify which expression should we use for x = 8.
Looking at the intervals, we can see that x = 8 is not defined in any interval.
Therefore f(8) is undefined.