The equation for kinetic energy in the graphic is wrong. You have 1/2mBf * VAf^2 instead of 1/2mAf * VAf^2