I see one potential point of confusion that other answers haven't covered. You ask about timing, and which notes you play first or play together. You might be asking because the F quarter note appears to the left of the other notes. This doesn't actually mean anything about timing; both the quarter and half note Fs count as "beat one"; it's just that one has to be shifted a bit to avoid overlapping.
This is about the idea of having multiple "voices" at once. This might seem odd since you're not a choir, just one pianist. But the idea is that your one instrument can "suggest" multiple ones at once, or that "if this music were being sung by a choir, here are the notes that one voice would sing."
Let's make up a simple example. Say this is the melody:

Now let's add a few notes:

The way we've notated this, with noteheads sharing a single stem, we're implying that this is not two voices, just a single instrument that can play double stops. But what if this were actually for two singers? On beat one, what happens? Do they both sing F, or does one of them rest? Both could be options:


For singers, those two versions are very different. But for piano, the two examples above will be performed almost exactly the same. You'll press the F key, then the F and A together, etc. So why bother notating it this way? Well, for one thing, even if both examples wind up sounding exactly the same, it shows an idea about the music. Notated music is more than instructions about what to press when. And secondly, you might try to show the different ideas by making some notes louder or more connected than others.
Now, say you want this:

You want to press the F key on beat one, and keep it down while adding A in beat two. This is one way to show it. But so is this:

These two notations say the same thing about timing. The only difference is that the second one shows "two voices." And honestly it might be even clearer than the previous one, in which the tie could be confused for a slur between the F and the A. In the second notation, you still only press the F key once. The quarter notehead is shifted to the left since it can't just overlap the half note, but they happen at the same time. And, as a pianist, you only have the one key to press, but if this were sung, two people would both be singing Fs at that moment.