At first, the number of blueberry tarts was 2/3 the number of chocolate tarts.
blueberry at first → 2u chocolate at first → 3u
1/4 of the blueberry tarts and 4/9 of the chocolate tarts were given away.
blueberry given away → 1/4 blueberry left → 1 - 1/4 = 3/4
blueberry left (units) → 3/4 x blueberry at first = 3/4 x 2u = 6/4u = 3/2u
chocolate given away → 4/9 chocolate left → 1 - 4/9 = 5/9
chocolate left (units) → 5/9 x chocolate at first = 5/9 x 3u = 15/9u = 5/3u
The number of chocolate tarts left was 12 more than the number of blueberry tarts left.
chocolate left - blueberry left = 12
chocolate left (units) - blueberry left (units) → 5/3u - 3/2u = 10/6u - 9/6u = 1/6u
1/6u → 12 6/6u or 1u → 12 x 6 = 72
total units → 3 + 2 = 5u
5u → 5 x 72 = 360 tarts