what is the better buy one pack of aaa batteries for $5.49 and get a pack free or buy two packs for $2.9.

Assuming that's $2.90 each, then

2*2.9 = 5.80

So, now, which has cost more for two packs of batteries?