#include<bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define endl "\n"
#define int long long int
int number = 1, number1;
void solve(int&a ,int&b)
{
    
    int pro=a*b;

    cout<<"YES"<<endl;
    cout<<a<<" "<<a*b<<" "<<a+(a*b)<<endl;
    return;
   
}
int32_t main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
#ifndef ONLINE_JUDGE
    // for getting input from input.txt
    freopen("Input.txt", "r", stdin);
    // for writing output to output.txt
    freopen("Output.txt", "w", stdout);
#endif
    int t = 1;
    cin >> t;
    while (t > 0)
    {
        int a,b;
        cin>>a>>b;
        if(b!=1)
        solve(a,b);
         else
         {
            cout<<"NO"<<endl;
         }
        --t;
    }
    return 0;
}