t = int(input()) for _ in range(t): n,x = map(int, input().split()) if n <= x//4: print(-1) else: ans = [x for x in range(1,n)] c = x-sum(ans) if c <= n-1: print(-1) else: ans.append(c) print(*ans)