Code:
awk ' { for (j=1;j<=NF;j++) {
CONG[NR,j]=$j
}
{getline < "'$SA'"} { for (j=1;j<=NF;j++) {
SA[NR,j]=$j }
}
{for (i=1;i<=NR;i++) {print SA[i,1],SA[i,2],CONG[1,2],CONG[1,5],CONG[1,5] + SA[i,2]}}
{for (i=1;i<=NR;i++) {print SA[i,1],SA[i,2],CONG[2,2],CONG[2,5],CONG[2,5] + SA[i,2]}}
{for (i=1;i<=NR;i++) {print SA[i,1],SA[i,2],CONG[3,2],CONG[3,5],CONG[3,5] + SA[i,2]}}
{for (i=1;i<=NR;i++) {print SA[i,1],SA[i,2],CONG[4,2],CONG[4,5],CONG[4,5] + SA[i,2]}}
{for (i=1;i<=NR;i++) {print SA[i,1],SA[i,2],CONG[5,2],CONG[5,5],CONG[5,5] + SA[i,2]}}
}' | sort -u |