#include <bits/stdc++.h>
#define MOD  1000000007
#define pb   push_back
#define pf    push_front
#define ll long long
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
     int t;
     cin>>t;
     while(t--)
{
    ll a,b;
    cin>>a>>b;
    if(b==1)
    cout<<"NO"<<endl;
    else
    {
        cout<<"YES"<<endl;
        cout<<a<<" "<<a*b<<" "<<a*(b+1)<<endl;
    }


     
     
}
    return 0;
}