Understanding piecewise functions and how to find h(x)