T = int(input()) for _ in range(T): N, X = map(int, input().split()) S = (N+1)*N//2 if X < S: print(-1) else: T = X - S print(*range(1, N), N + T)