Number of pastries = 15
Number of biscuit packets = 12
∴ The required no of boxes to contain equal number = HCF of 15 and 13
By applying Euclid’s division lemma
15 = 12 × 13
12 = 2 × 9 = 0
∴ No. of boxes required = 3
Hence each box will contain 15/3 = 5 pastries and 2/3 biscuit packets