[SOLVED] i want to buy ram

You have two ram slots.
One stick of apparently 4gb is installed.
You will need to remove that in favor of a two stick replacement.
Either of your linked ram kits should work and give you 8gb in dual channel mode.
Since such ram is apparently cheap, I would consider making that a 2 x 8gb kit.