Where the Pacific plate collides with the Indo-Australian plate, it is forced downwards into the trench, a subduction zone, and the volcanoes are carried with it.
The Australianplate borders the Pacific plate to the East (the Samoan quake occurred along this boundary), while on the Western side, it borders the Eurasian plate (where the Indonesia quake occurred).