#include #include #include #include #include #include using namespace std; int main(){ int t; cin >> t; for(int i=0; i> a >> b; int count = b; int sum = a*b; cout << count+sum << endl; } return 0; }