T=int(input()) for _ in range(T): n,x=map(int,input().split()) a=list(range(1,n+1)) A=sum(a) if A>x: print(-1) else: a[-1]+=x-A print(*a)