How can I shop at a merchant?

Solution 1:

Press E near an NPC to interact with them.