How does 18 24 and 30 relate?

They are consecutive multiples of 6.

24 = average of (18,30)

182 + 242 = 302