In a head on collision between two particles the K.E. becomes minimum and the P.E. becomes maximum at the instant when the two move with common velocity.
The momentum and total energy are conserved at any instant.
Let m and u be the mass and initial velocity of the first particle, 2m the mass of the stationary particle.
Let v be the common velocity
12mu2=3J
mu=(m+2m)v
v=u3
∴ minimum K.E of the system=123m(u3)2
=(12mu2)13=1J
∴ maximum P.E.=2J