Took my car to the dealership to see what was causing it to drive so bad, they told me it was the MAF sensor and wanted $360 for the part and $70 for labor...not happening.

I did some research online and it seems that I come up with two different parts when I enter my car's info to pull up compatible parts. Which one is the one I need on my 1998 Grand Prix GTP? :

OR

real basic question, thanks for any help!