#include<iostream>
#include<vector>
#include<string>
#include<unordered_map>
#include<unordered_set>
#include<cmath>
#include<algorithm>
#include<climits>
#include<map>
#include<cstdlib>
#include<queue>
#include<functional>
#include<iomanip>
#include<stack>
#include<set>
using namespace std;
#define ll long long


void solve(){

    ll a,b;
    cin>>a>>b;

    if(b == 1){
        cout<<"NO"<<endl;
        return;
    }

    ll k1 = a;
    ll k2 = a*b;
    ll k3 = a*(b+1);

    cout<<"YES"<<endl;
    cout<<k1<<" "<<k2<<" "<<k3<<endl;

}

int main(){

    int t;
    cin>>t;

    while(t--){
        solve();
    }

    return 0;
}