Note that if three numbers x, y, z form an arithmetic progression, then \(y = \dfrac{x + z}2\).
Also, if three numbers a, b, c form a geometric progression, then \(b^2 = ac\).
Therefore, \(4^2 = 2\cdot x\). Solving gives x = 8.
Can you continue from here?