1.30 × 3 = 3.90
3.90 + 0.65 (half of 1.30) = 4.55
the most 104 can be devided by 4.55 with no remainders is 22
22 × 4.55 = 100.1
this leaves with 3.9$ which we can buy 3, 1.30 with
22 + 3 = 24
25 tarts is the most you can buy with 104$ leaving on remainders.