Solve the system of equations using substitution.
2x+y=10
y=3x
2x+y=10
y=3x