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


int main () {
	ll t; cin>>t;
	for (ll o=1; o<=t; o++){
		ll a,b; cin>>a>>b;
		if (b==1) {
			cout<<"NO"<<endl;
		}
        else if (a==1) {
        	if (b>=5 && b!=6){
				ll x,y,z;
				x=b;
				if (b%2==0) y=3;
				else y=2;
				if (b%2==0) z=b-3;
				else z=b-2;
				cout<<"YES"<<endl;
				cout<<y<<" "<<z<<" "<<x<<endl;
			}
			else {
				ll x,y,z;
				x=12;
				y=5;
				z=7;
				cout<<"YES"<<endl;
				cout<<y<<" "<<z<<" "<<x<<endl;
			}

		}
		else if (b%a==0) {
			if (b/a>2){
				ll x,y,z;
				x=a*b;
				y=a;
				z=(b-1)*a;
				cout<<"YES"<<endl;
				cout<<y<<" "<<z<<" "<<x<<endl;	
			}
			 else {
				ll x,y,z;
				x=2*a*b;
				y=a;
				z=(2*b-1)*a;
				cout<<"YES"<<endl;
				cout<<y<<" "<<z<<" "<<x<<endl;	
			} 
		}
		else {
			if (b>2){
			ll x,y,z;
			x=a*b;
			y=a;
			z=(b-1)*a;
			cout<<"YES"<<endl;
			cout<<y<<" "<<z<<" "<<x<<endl;	
			}
			else {
				ll x,y,z;
				x=a*5;
			    y=a*b;
			    z=(5-b)*a;
			    cout<<"YES"<<endl;
			    cout<<y<<" "<<z<<" "<<x<<endl;	
			}
		}
	}
	return 0;
}

