import sys input = lambda: sys.stdin.readline()[:-1] t = int(input()) for i in range(t): n, x = map(int, input().split()) p = x - n*(n-1)//2 if p < n: print(-1) else: print(*range(1, n), p)