Question Practice

Question 1
Two friends A and B were standing at the diagonally opposite corners of a rectangular plot whose perimeter is 100m. A first walked x meters along the length of the plot towards East and then y meters towards the South. B walked x meters along the breadth towards North and then y meters towards West. At the end of their walks, A and B were standing at the diagonally opposite corners of a smaller rectangular plot whose perimeter is 40m. How much distance did A walk?