#include<bits/stdc++.h>
#define fre(x) freopen(#x".in","r",stdin);freopen(#x".out","w",stdout)
#define ll long long
#define int long long
using namespace std;
inline int read(){
	int x=0,f=1;char c=getchar();
	while(c<'0'||c>'9') { if(c=='-') f=-1;c=getchar(); }
	while(c>='0'&&c<='9') x=(x<<3)+(x<<1)+(c^'0'),c=getchar();
	return x*f;
}
const int N=1e5+5;
int n,m,a[N];
inline void solve(){
	int a=read(),b=read();
	if(b==1) return puts("NO"),void();
	puts("YES");
	if(b==2){
		printf("%lld %lld %lld\n",a,a*3,a*4);
		return;
	}
	int z=a*b,x=(b-1)*a,y=z-x;
	printf("%lld %lld %lld\n",x,y,z);
}
signed main(){
	int T=read();
	while(T--) solve();
	return 0;
}