The number of tarts in one box is 9 more than the number of muffins in one packet.
let 1u be number of muffins in 1 packet
muffin in 1 packet → 1u tarts in 1 box → 1u + 9
total muffins → 17 x 1u = 17u
total tarts → 5 x (1u + 9) = 5 x 1u + 5 x 9 = 5u + 45
68% of the total number of muffins and tarts that Michael bought were muffins.
tarts % → 100 - 68 = 32% (normal) muffins : tarts 68% : 32% 34 : 16 17 : 8
muffins unit : tarts unit 17u : 5u + 45
since the normal ratio in muffins and in units are the same, that means
8u (normal tarts) = 5u + 45 8u - 5u = 5u - 5u + 45 3u = 45 1u = 45 ÷ 3 = 15
muffin in 1 packet → 1u = 15
tarts in 1 box → 1u + 9 = 15 + 9 = 24
muffin 1 packet : tarts 1 box 15 : 24 ÷ 3 : ÷ 3 5 : 8