Use the Arithmetic Progression (AP) formula to calculate the sum of multiples of 3 and 5 separately, then subtract the sum of multiples of 15 to avoid double counting.