#include<bits/stdc++.h>
using namespace std;
 
#define FAST ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
#define ll long long
#define all(x) (x).begin(), (x).end()
#define ff first
#define ss second
 
void input(int *arr, int n){
	for(int i=0; i<n; ++i) cin >> arr[i];
}
 
void input(vector<int>&arr, int n){
	for(int i=0; i<n; ++i) cin >> arr[i];
}
 
void print(int *arr, int n){
	for(int i=0; i<n; ++i) cout << arr[i] << " ";
	cout << "\n";
}
 
void print(vector<int>&arr, int n){
	for(int i=0; i<n; ++i) cout << arr[i] << " ";
	cout << "\n";
}
 
int main(){
	FAST;
	int test = 1;
	cin >> test;
	for(int tt=1; tt<=test; ++tt){
		ll a, b;
		cin >> a >> b;
		if(b==1){
			cout << "NO" << "\n";
		}
		else{
			int i = 1, j = 1, k;
			k = j + i*b;
			cout << "YES\n" << i*a*b << " " << j*a << " " << k*a << "\n";
		}
	}
	return 0;
}