which is the neighbor country of philippines before in pangaea