#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;

ll fast_pow_divide(ll base, ll power, ll div){
  ll ans = 1;
  if(power == 0){
    ans = 1;
  }
  ll x = base;
  while(power>0){
    if(power%2==1){
      ans = (ans * x)%div;
      power--;
    }
    else{
      x = (x*x)%div;
      power = power/2;
    }
  }
  if(base<0){
    ans = (ans + div)% div;
  }
  return ans;
}

int main(){
  ll t;
  cin>>t;
  for(int u=0;u<t;u++){
    ll a, b;
    cin>>a>>b;
    if(b==1){
      cout<<"NO"<<endl;
    }
    else{
      ll x,y,z;
      if(b!=2){
        x = a*b-a;
        y = a;
        z = x+y;
      }
      else{
        x = a*3;
        y = a;
        z = x+y;
      }
      cout<<"YES"<<endl;
      cout<<x<<" "<<y<<" "<<z<<endl;
    }
  }
  return 0;
}
