Find the smallest positive integer that is divisible by both 8 and 12 and leaves a remainder of 4 when divided by 5.
Note
LCM of 8 and 12 is 24, so candidates are multiples of 24; 24 mod 5 = 4, so 24 is the smallest number satisfying all conditions.
