Given that,
Momenta of A=p1
Momenta of B=p2
Now, applying impulse
For A,
J=p1
For B,
J=p−p2
p2=p−J
Now, the coefficient of restitution is
e=p1−p2p
e=2J−pp
e=2Jp−1
Hence, the coefficient of restitution is 2Jp−1