import itertools t = int(input()) for _ in range(t): n,x = map(int, input().split()) c = list(itertools.combinations(range(1,x-2), n)) if len(c) == 0: print(-1) else: for i in c: if sum(i) == x: print(*i) break else: print(-1)