Explanation:
hmmm, did you mean, when
x + 1/x = 5
then
x² + 1/x² = ?
otherwise, we would need some information, how p and x are related somehow.
so, when
x + 1/x = 5
then
(x + 1/x)² = 5² = 25
x² + 1/x² + 2×x×1/x = 25
x² + 1/x² + 2 = 25
x² + 1/x² = 25 - 2 = 23