Let p be a rational number.

Find another rational number q, such that AND

[I am stuck on Rudin pg 1 . I am struggling to find an explanation as how would anyone get (2p+2)/(p+2). It works but I couldn't have imagined it - so is there a way we can do it systematically?]

Thanks