The ratio of Edward's money to Gary's was 3:2. Together, they had 1,000 pesos. After spending 200 pesos each at the Internet Cafe, the ratio of Edward's money to Gary's became 2:1. How much did each have before going to the Internet Cafe?