t = int(input()) N = [] X = [] for _ in range(t): n, x = map(int, input().split()) N.append(n) X.append(x) for i in range(t): n = N[i] x = X[i] ans = [] for i in range(1, n): ans.append(i) sum_ans = sum(ans) if x-sum_ans <= ans[-1]: print(-1) else: print(*ans, x-sum_ans)