Explanation;
Mass of both the bullets = 0.11 g = 0.00011 kg
The length of pistol's barrel in meters= L
The length of rifle's barrel in meters= l
Exit speed of the bullet from pistol :
![v_(1)^2=u_(1)^2+2a_1L](https://img.qammunity.org/2020/formulas/physics/high-school/51bnvry77qoh9gg4f3ix1zu0m8kxvpx44d.png)
(bullet was initially at rest)
![a_1=(v_(1)^2)/(2L)](https://img.qammunity.org/2020/formulas/physics/high-school/j8568lx3ulelc4n5numog6horesgntr1xz.png)
Force on the bullet by the pistol
..(1)
Exit speed of the bullet from Riffle :
![v_(2)^2=u_(2)^2+2a_2l](https://img.qammunity.org/2020/formulas/physics/high-school/nyiwjkwn13jcuqa8bmfpm883hx8z003w6p.png)
(bullet was initially at rest)
![a_2=(v_(2)^2)/(2l)](https://img.qammunity.org/2020/formulas/physics/high-school/95k0k2fwssh39k7vzmtddi1qnv0f7k1tg5.png)
..(2)
Given
![F_1=F_2](https://img.qammunity.org/2020/formulas/physics/high-school/ibt9zd4oe8sdkglwdrq551hmxwpsrgxb8c.png)
![0.00011 kg* (v_(1)^2)/(2L)=0.00011 kg* (v_(2)^2)/(2l)](https://img.qammunity.org/2020/formulas/physics/high-school/9k4iago225kdzkeiem6m7lx1ywrz1mjeh4.png)
![((v_1)/(v_2))^2=(L)/(l)](https://img.qammunity.org/2020/formulas/physics/high-school/540rczileqnjqy86y4yjezeiav1958e5y4.png)
![Speed\propto Length](https://img.qammunity.org/2020/formulas/physics/high-school/4brb5dhrc40d42hctnrhq2p20om6ei9wc9.png)
From this we can say that speed of the bullet is directly related to the length of the barrel of the firearm.
The higher speed of the bullet from riffle means that barrel length of the riffle is longer in which bullet is accelerated through longer distance.The longer length of riffles barrel explains the higher speed of the bullet when shot from the riffle.