#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define int ll
#define fi first
#define se second
#define pb push_back
#define pf push_front
#define ppb pop_back
#define ppf pop_front
#define INF (ll)1e18
#define INF2 (ll)2e18
#define INF3 (ll)3e18
#define INF4 (ll)4e18
#define inf (signed)1e9
#define inf2 (signed)2e9

const int NMAX=1e5;
int a[NMAX+500];

signed main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    int t;
    cin>>t;
    while(t--){
        int A,B;
        cin>>A>>B;
        if(B==1)cout<<"NO\n";
        else cout<<"YES\n"<<A<<" "<<A*B<<" "<<A*(B+1)<<"\n";
    }
}
