1. Input both arrays, A and B,
  2. Allocate a new one that's size sizeof(A)+sizeof(B)
  3. Put numbers in new array - use a loop.
  4. Delete the repeats.
  5. Sort it - bubblesort is easy to implement.


Now code.