Identify a composite number other than 1 that is a factor of both 24 and 42.

A composite number that is a factor of both 24 and 42 is

6.