A tie is a curved line which connects two notes with the same position on the staff. The tie tells you to tongue the first note only, and to hold it for the length of both notes.
Play the G note and hold it for six beats.
A tie may occur either across a bar line, or within one bar. The following melody contains examples of both. Do not confuse the tie with the slur, which connects notes of different pitches.