#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int cur = (4 * n) - 2;
    int i = 0;
    vector<int> output;
    while (i < n) {
      int l = output.size();
      for (int j = 0; j < l; j++) {
        if (output[j] % cur == 0) {
          cur = cur - 2;
          continue;
        }
      }
      output.push_back(cur);
      cur = cur - 2;
      i++;
    }
    for (int i = 0; i < output.size(); i++) {
      cout << output[i] << " ";
    }
    cout << endl;
  }
}
