Since a commutes with both p and r,

par = rap ⇒ pra = rpa ⇒ pr = rp.