#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <stack>
#include <queue>
#include <string>
#include <vector>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<pii, pii> pipi;

int tc;
ll a, b, x, y;

int main() {
    scanf("%d", &tc);
    while (tc--) {
        scanf("%lld %lld", &a, &b);
        if (b == 1) {
            printf("NO\n");
            continue;
        } else if (b == 2) {
            x = a * 3;
            y = a;
            printf("YES\n");
            printf("%lld %lld %lld\n", a * b, y, x);
        } else {
            x = a * (b - 1);
            y = a;
            printf("YES\n");
            printf("%lld %lld %lld\n", x, y, a * b);
        }
    }
}