a, b and c are in A.P., so,
2b=a+c …(1)
Again, by the given condition, a+1, b and c are in G.P. and a, b and c+2 are in G.P. Hence,
b2=(a+1)c …(2)
and
b2=a(c+2) …(3)
By (2) and (3),
(a+1)c=a(c+2)
⇒ac+c=ac+2a
⇒c=2a
Equation (2) gives b2=(a+1)2a
Also, Eq. (1) gives
2b=a+2a=3a
⇒b=3a2
⇒9a24=(a+1)2a
⇒9a8=a+1
⇒a=8
⇒c=2(8)=16
⇒2b=8+16=24
⇒b=12