for _ in [0] * int(input()): n, x = map(int, input().split()) ans = [*range(1, n + 1)] s = sum(ans) if(s > x): print(-1) continue ans[n - 1] += x - s print(*ans)