def INT(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) 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(N, 1, -1): A.append(i) X -= i A.append(X) A.sort(reverse=True) if A[0] == A[1] and N > 1: A[0] += 1 A[-1] -= 1 print(*A)