import bisect n = 200001 acc = [1 for _ in range(n)] for j in range(1,n): acc[j] = acc[j-1] + j + 1 T = int(input()) for _ in range(T): N,X = map(int,input().split()) if acc[N-1] > X: print(-1) else: a = bisect.bisect_left(acc,X) ans = [i for i in range(a+1,0,-1)] if acc[a] - X != 0: ans.remove(acc[a] - X) print(*ans)