Answer: Melody ate more.
Explanation:
So, it would be Melody who ate more because
Over here:
Heather: ate 3 OUT of 6
Melody: ate 3 OUT of 5
Melody ate more because if you count up to 5 theres two cookies left, while Heather had 3 cookies left.
Hope this answers your question!