#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define gap " "
#define endl "\n"
#define pie acos(-1)
#define mod 1000000007
using namespace std;

int main()
{
    ios_base::sync_with_stdio(0);
    cout.tie(0);

#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
    ll test;
    cin >> test;

    while (test--)
    {
        ll a, b;
        cin >> a >> b;
        if (b == 1)
            cout << "NO" << endl;
        else
        {
            cout << "YES" << endl;
            if (b != 2)
                cout << a << gap << a * (b - 1) << gap << a * b << endl;
            else
                cout << a * 7 << gap << a * 3 << gap << a * b * 5 << endl;
        }
    }
}
// Roxy Sarkar
