#include <bits/stdc++.h>
using namespace std;
#define boost  ios_base::sync_with_stdio(0);
#define ll long long int
#define pb push_back
#define tc long long int t; cin >> t; while(t--)
#define vect vector <ll>
#define vpll vector<pair<ll,ll>>
#define MOD 1000000007

int main(){
	boost;
	ll i;
	tc{
		ll a,b;
		cin >> a >> b;
		if(b == 1){
			cout << "NO" <<endl; 
		}
		else{ 
			cout << "YES" << endl << a <<" " << a*b << " " << a*(b+1) <<endl;
		}
	}
	return 0;
} 	