Question:
A box of cookies was shared between Jesse and Linn in the ratio of 7 : 4. Linn then decided to share her portion of cookies with her younger brother in the ratio 5 : 3 while Jesse shared her portion of the cookies with her elder sister in the ratio of 4 : 3. Among the four of them, the smallest portion of cookies was 12 pieces. How many pieces of cookies were there in the box at first?