The scenario you described is characteristic of a volcanic island arc that forms as a result of the collision of two oceanic plates. When two oceanic plates converge, one plate is often subducted beneath the other, leading to the melting of mantle material and the formation of magma. This magma can rise to the surface, creating a series of volcanoes that often form an arc shape.
A well-known example of this phenomenon is the Aleutian Islands in Alaska, where the Pacific Plate is subducting beneath the North American Plate. Another example is the Japanese Archipelago, where the Philippine Sea Plate is colliding with the Eurasian Plate. These island arcs are formed as the result of volcanic activity associated with the tectonic activity at plate boundaries.