Sophie bought a total of 27 guppies and angel fish. She bought twice as many guppies as angel fish. How many of each kind of fish did Sophie purchase?

g = 2(27-g)