A piecewise linear function h(x) has a local minimum at y=5 and a local maximum at y=12. If the function is shifted vertically downwards by k units so that the new function p(x)=h(x)−k has exactly one root (touches the x -axis at the local minimum), determine the value of k and the new maximum value of p(x).