If ‘x’ is the length of a rope and it is cut into two pieces, such that length of one piece is 10 more than the other length of other piece. What is the length of the smaller piece?

Well, could I say that the smaller piece is 'y' and the rest of the rope is '10+y.' Then, We have y+y+10=x. Then, the smaller rope would be y=(x-10)/2

Right?