The firecracker factory bought several boxes of gunpowder, and each box was divided into 6 packs. A small firework can be made with 3 packs of gunpowder, and a large firework can be made with 4 packs of gunpowder. Now the firecracker factory wants to produce several large fireworks, but finds that it still lacks 3 boxes of gunpowder; if it is changed to produce the same number of small fireworks, it still lacks 6 packs of gunpowder. How many boxes of gunpowder did the factory buy back in total?
鞭炮厂买回了几盒火药，每盒分成6包，用3包火药能制作一个小礼花，用4包火药能制作一个大礼花．现在鞭炮厂想要生产几个大礼花，发现还缺3盒火药；如果改成生产同样数量的小礼花，仍然会缺少6包火药．工厂一共买回了几盒火药？
<gadget id="calculator">5 / 1</gadget>
<output>5</output>

<result>5</result>