Kia recalls 5 digits of a 7-digit number and marks A and B in place of the remaining 2 digits.
654A27B
She later recalls that the number is exactly divisible by 24.
If A and B are the smallest numbers, then find the sum of A and B.