#include <bits/stdc++.h>
using namespace std;

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        long long int a,b;
        cin>>a>>b;
        if(b==1)
        cout<<"NO"<<endl;
        else
        {
            cout<<"YES"<<endl;
            cout<<a*b*3-a<<" "<<a<<" "<<a*b*3 <<endl;
        }

    }
}
