Merging Two Codes?

Resesrch it one line at a time.
You haven't explained why you want to do this.