#include <bits/stdc++.h>
#ifdef ONLINE_JUDGE
#define endl "\n"
#endif
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef pair<int, int> PII;

void solve() {
    LL a, b; cin >> a >> b;

    if (b == 1) {
        cout << "NO" << endl;
        return;
    }

    cout << "YES" << endl;
    cout << a * (b - 1) << " " << a * (b + 1) << " " << 2 * a * b << endl;
}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    int t;cin >> t;while(t--)
    solve();
    return 0;
}
