#include <bits/stdc++.h>
int main() {
  int n, t;
  scanf("%d", &n);
  while (n--) {
    scanf("%d", &t);
    for (int i = 4 * t; i >= 2 * t + 2; i -= 2) printf("%d ", i);
    printf("\n");
  }
  return 0;
}
