#include<cstdio>
typedef long long ll;
int main() {
	int T;
	ll a, b;
	scanf("%d", &T);
	while (T--) {
		scanf("%lld%lld", &a, &b);
		if (b == 1) {
			printf("NO\n");
		}
		else if (b == 2) {
			printf("YES\n%lld %lld %lld\n", a, 3 * a, 4 * a);
		}
		else {
			printf("YES\n%lld %lld %lld\n", a, a * (b - 1), a * b);
		}
	}
	return 0;
}