There are two positive numbers that can be inserted between 3 and 9 such that the first three are in geometric progression while the last three are in arithmetic progression. Find the sum of those two numbers.