#include<iostream>
using namespace std;
int main()
{
	unsigned long long t,a,b,p;
	cin>>t;
	while(t!=0)
	{
		cin>>a;
		cin>>b;
		p=b+1;
		if(b==1)
			cout<<"NO\n";
		else if(p*a==a*b+a)
		{
			cout<<"YES "<<a<<" "<<b*a<<" "<<a*p<<endl;
		}
		else
		{
			p=b-1;
			if(a*p+a==a*b)
			{
				cout<<"YES "<<a*p<<" "<<a<<" "<<a*b<<endl;
			}
			else
			{
				cout<<"NO\n";
			}
		}
		t--;
	}
}