An inspector found 40 defective batteries during an inspections. If this is 2.5% of the total number of batteries inspected, how many batteries were inspected?