//Link -> https://codeforces.com/contest/1521/problem/0

#include <iostream>
using namespace std;

#define int long long int

int32_t main()
{
    int t;
    cin>>t;

    while(t--)
    {
        int a,b;
        cin>>a>>b;

        //if(a!=b)
        //{
            int first = a*b;
            int second = a*(b+1);
            if(b!=1)
            {
                cout<<"YES"<<endl;
                cout<<first<<" "<<second<<" "<<first + second<<endl;
            }
            else
            {
                cout<<"NO"<<endl;
            }
        //}
        //else
        //cout<<"NO"<<endl;
    }

    return 0;
}