We want to find a such that 6+a:14+a::18+a:38+a. This implies that
(6+a)(38+a)=(14+a)(18+a).
This simplifies to
228+44a+a2=252+32a+a2.
Hence, 12a=24 or a=2. Therefore, if we add 2 to all the terms, the new numbers are proportional.
We can also do this as follows. Using
6+a14+a=18+a38+a,
we may obtain
6+a14+a=18+a38+a=(18+a)−(6+a)(38+a)−(14+a)=1224=12.
Hence, 2(6 + a) = 14 + a. This reduces to a=14−12=2.