Respuesta :

They had the same amount.  If you take each fraction and give them common denominators you get:
Fred: 2/8, 3/8, 4/8
Sam: 5/8, 4/8

Then you can add them and each person ate 9/8 of a cookie