#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, i;
    cin >> n;
    for (i = 4 * n; i > 2 * n; i--) {
      if (i % 2 == 0) cout << i << " ";
    }
    cout << endl;
  }
}
