Let the first term be a and the common difference be d.
nth term is given by the formula,
nth term = a+(n-1)d
p the term = a+(p-1)d
qth term =a+(q-1)d
According to question,pth term is q and qth term is p.
At this stage you can substitute the values.
i really enjoy learning algebra........ but i always wonder why we have to learn it??? can u please answer to my doubt???