You need to find the force each bullet exerts on the rifle (using F= ma). You know the mass of each bullet, and you know what speed it accelerates to, but you need to find the actual acceleration. If you know the length of the rifle, use a SUVAT equation to find A.