Merging Two Codes?

ok thanks for the help I really appreciate it