Linux awk

awk -v a="$j" -v b="$i" ' { split(a, aray, " ") split(b, bray, " ") for (i=1; i<=length(aray); i++) {		 printf "static %s %s\n", aray[i], bray[i] } }'