Hey this a very easy code for your problem try this.
Program:
using System;
class SortArray
{
public static void Main()
{
int [] A={127,157,240,550,510};
int [] B={275,157,750,255,150};
int CLength=(A.Length +B.Length);
int [] C=new int[CLength];
int i=0,j=0,k;
Console.Writeline ("Sorted array list : ");
for(k=0;k<=(i+j);k++)
{
if(A[i]<=B[j])
{
C[k]=A[i];
Console.Write (C[k] + " ");
if(i<4)
{
i++;
}
}
else
{
C[k]=B[j];
Console.Write (C[k] + " ");
if(j<4)
{
j++;
}
}
}
for(i=0;i<CLength;i++)
{
Console.Write(C[i] + " ");
}
Console.ReadLine();
}
}