There are two separate voices with different timings written on the same staff. One voice plays the notes with stems pointing up, and another plays the notes with stems pointing down. What the voices mean depends on the type of music and instrumentation. In a band, they may be completely separate instruments, but an organist or pianist can play many voices simultaneously.
The bass staff has a third voice.