Each fact can be used to get one equation. 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, because it mixes up the two facts. Use the first sentence to get an equation that represents the first fact only.