What is the largest prime of 18 and 24?

largest prime factor of 18 & 24 = 3

factors of :
18= 1, 3, 6, 9, 18
24= 1, 2, 3,4, 6, 8, 12, 24,

prime factors of 18 & 24 = 2, 3
largest prime factor of 18 & 24 = 3