#include<bits/stdc++.h> 
using namespace std;
#define bolt ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define F first
#define S second
#define pb push_back
#define endl "\n" //Anti-Interactive
#define lb lower_bound
#define ub upper_bound
typedef long long ll;
typedef long double ld;
const ld pi=3.1415926535897932384626433;
const ll inf = 1e18;
const ll mod = 1e9+7;
void solve()
{
   ll a,b;
   cin>>a>>b;
   if (b == 1)
   {
      cout<<"NO\n";
      return;
   }
   cout<<"YES\n";
   cout<<(b-1)*a<<" "<<(b+1)*a<<" "<<2*a*b<<endl;
}
int main()
{
   bolt;
   ll t;
   t=1;
   cin>>t;
   while(t--)
   {
      solve();
   }
}