The question itself, based on a few drawings on paper I think for (n,x) = (n,n-1) you can use the graph that has a single root connected to all leaves, and then for getting (n+1,n-1), just take one of the branches and put an intermediate vertex which will have degree two, which process can be continued indefinitely.

Illustration for x = 4.