Shailat gave you the deal, if you need more..
for trumpet: on the piano go up one whole step (c to d, Bb to C, E to F#, etc.) to get your key signature, then just start writing your music one line or space above the origninal (if you're on the 3rd line originally, use the 3rd space, 4th line...