def INT(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) T = INT() for _ in range(T): N, X = MI() if N * (N + 1) // 2 > X: print(-1) continue A = [] for i in range(1, N): A.append(i) X -= i if A[-1] == X: print(-1) continue A.append(X) print(*A)