Kinetic energy in the first case :
12mv2=12(2.1×103)(550)2=3.17×108J
In the second case,we have to conserve both momentum and kinetic energy between both cannon and shell:
pbefore=0=pafter=mshellvshell−mcannonvcannon
mcannonvcannon=mshellvshell
vcannon=mshellvshellmcannon
k=12mshellv2shell+12mcannonv2cannon
k=12mshellv2shell+12mcannon(mshellvshellmcannon)2
k=12mshellv2shell+12mshellv2shell(mshellmcannon)2
=12mshellv2shell(1+(mshellmcannon))
v2shell=2kmshell(1+(mshellmcannon))
vshell=
⎷2×3.17×108(2.1×103)(1+2.110)=√249508≅499.5=500m/s