Using the substitution method, solve for x and y in the following system of equations.
3x+5y=10
Y=x+2
3x+5y=10
Y=x+2