Write a scientific explanation to describe where earthquakes and volcanoes most commonly occur and their relation to plate boundaries .