#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
const int mod=1000000007;
mt19937_64 rng(std::chrono::steady_clock::now().time_since_epoch().count());


void solve(){
    int A,B;
    cin>>A>>B;
    if(B==1){
      cout<<"NO";
    }
    else{
    cout<<"YES"<<endl;

    if(B==2){
        cout<<A*(1)<<" "<<A*(3)<<" "<<A*B*2;
    }
    else{
        cout<<A*(1)<<" "<<A*(B-1)<<" "<<A*B;
    }
    }
    cout<<endl;
}
int32_t main(){
      ios_base::sync_with_stdio(0);
      cin.tie(0);
      // srand(time(0));
      int t;
      cin>>t;
      //   t=1;
      while(t--){
        // cout<<"Case #"<<tt<<": ";
            solve();
            // tt++;
      }
      return 0;
}