If 6, P, and 14 are consecutive terms in an Arithmetic Progression (AP), find the…