#include<stdio.h>
#include<string.h>int main()
{
int i,j,n,lf,ls,l,k;
char f[55],s[55],t[110];
while(scanf("%d",&n)!=EOF)
{
getchar();
while(n--){
gets(f);
gets(s);
lf=strlen(f)/2; ls=strlen(s);
l=2*lf+ls; j=0; k=0;
for(i=0;i<l;i++){
if(i<lf) t[i]=f[i];
else if(i>=lf && i<lf+ls)
t[i]=s[k++];
else t[i]=f[lf+(j++)];
}
t[l]='\0';
puts(t);
}
}
system("pause");
return 0;
}