The hard part is the first sentence. You know the primes that divide such a number (as these are the primes that multiply to get 30), and the powers of the primes sum to 24 and are all non-zero (as otherwise the product would not be 24). So, what is the largest number possible? What is the smallest?
Big hint: let be such a number, with . Then the largest is the one with and .
(Unless I'm missing something here?)