Play Melody

See that next to last line? noTone( cool smiley ?
Did you write that? No, that is the forum mangling code. This is why we ask people to post code correctly in code tags. Please read this:-
How to use this forum

So you started this thread by asking

how to code 2 separate melodies to play from the same board (UNO) at once??

You seem to have ignored all the answers you got.
You can not use the tone function to play more than one note at the same time.

You can google the words:-
Arduino Polyphonic libiary
To find a replacement for your tone function