If x and y represent the two lengths, then the second equation could represent the relationship between them. However, the first equation would then be incorrect. Perhaps you thought the number 2 should appear because there are two pieces of rope. But that information is already taken into account by the presence of two variables.