Suppose Joe earned three times as much as Marty during the summer. Together they earned $210. How much did each earn?

(write a system of equations)