The change of energy for the projectile is the work done on the projectile which is W = F*x where x is the barrel length.
This is the same no matter the mass of the projectile. As the projectile leaves the barrel it has kinetic energy equal to F*x. The kinetic energy is the same no matter the mass.
Set 1/2 * m*v1^2 = 1/2*2*m*v2^2 and solve for v2 in terms of v1