When (a- 1)/2= 1, a=3.
Because the two values of a are not equal, it is impossible to get the above two equal signs at the same time.
If you write two equal signs, you can actually get only one.
So p and q will not be equal.