#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef pair<int,int> PII;
#define x first 
#define y second
typedef long long ll;
const int N=2e5+10;
const ll mod=1e9+7;
int n,w[N];
void solve()
{
	int a,b;
	cin>>a>>b;
	if(b==1)
	{
		puts("NO");
		return ;
	}
	puts("YES");
	cout<<(ll)(b-1)*a<<' '<<(ll)(b+1)*a<<' '<<(ll)2*a*b<<endl;
}
int main()
{
	int t;
	cin>>t;
	while(t--)
	{
		solve();
	}
	//system("pause");
	return 0;
}