Let us say that Gregory is q years old now. 4 years ago he was (q - 4) years. Using the information of the problem, we formulate the equation:
[tex]\begin{gathered} p=q-4 \\ \Rightarrow q=p+4 \end{gathered}[/tex]After 4 years, he will be (q + 4) years old. Using the previous equation:
[tex]\begin{gathered} q+4=p+4+4 \\ \Rightarrow(q+4)=p+8 \end{gathered}[/tex]Gregory will be (p + 8) years old 4 years from now.