Jacob had 5/8 as many toys as Greg. When Greg gave half of his toys to Jacob, he then had 55 fewer toys than his friend. How many toys did Greg have at first?

Before exchange:

Greg : x toys
Jacob : (5/8)x or 5x/8

After exchange:
Greg : x/2
Jabob : 5x/8 + x/2

5x/8 + x/2 - (x/2) = 55
5x = 440
x = 88