#include <bits/stdc++.h>
#define ll long long

using namespace std;

int main()
{
    int t;scanf("%d",&t);
    while(t--){
        ll a,b;cin>>a>>b;
        if(b==1){cout<<"NO"<<endl;continue;}
        cout<<"YES"<<endl;
        cout<<a<<" "<<a*(2*b-1)<<" "<<a*b*2<<endl;
    }
    return 0;
}
