Gas prices are down 40 cents on average from a year ago. Here's what's behind the trend.