Mrs. Mahoney went shopping for the some canned goods, which were on sale. She bought three times as many cans of tomatoes as cans of peaches. The number of cans of tuna was twice the number of cans of peaches. If Mrs. Mahoney purchased a total of 24 cans, how many of each did she buy?