This is the answer because you want the Y to be by itself, so you would want to get rid of the -5x.
To do this, you would have the add 5x on both sides, you would want to add 5x because you need to cancel out the -5x in order to get rid of it from that side.