NTA will take the best score (not average) among the 2 attempts of JEE Main for calculating AIR.