Three positive numbers for a geometric sequence. If the geometric mean of the first two numbers is 6 and the geometric mean of the last two numbers is 24, find the three numbers and their common ratio.