#include <iostream>
#include <vector>
#include <set>
#include <string>
#include <algorithm>

using namespace std;

typedef long long ll;

void solve()
{
    ll a, b; cin >> a >> b;
    if (b == 1)
    {
        cout << "NO\n"; return;
    }
    cout << "YES\n";
    cout << a << ' ' << a * b << ' ' << a * (b + 1) << '\n';
}

int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    int t = 1; cin >> t;
    while (t--)
        solve();
}