First of all, you aren't solving. You must of two sides of an equation in order to solve.
You are actually simplifying.
Ok. now here is the math part...
3y+2+2y+5
5y+2+5 (add the 'y' terms)
5y+7 (add the constants)
Answer: 5y+7
YOU CAN'T ADD 5y+7
Explanation:
You can ONLY add like terms. You CAN'T do 5y+7 because 7 doesn't have a y in front of it.
By adding those together, you are violating 'order of operations' due to the fact that y is a variable and variables represent numbers.
To put this into perspective, I will give y a value...
Let's say that y=3
If you plugged 3 into the expression for y...
5y+7, for y=3
You would do this
5(3)+7=15+7=22
NOT
5(3)+7=12(3)=36