An L-shaped sidewalk from the library to the gym on a high school campus is 90 yards long, as shown in the figure. By cutting diagonally across the grass, students shorten the walking distance to 70 yards. What are the lengths of the two legs of the sidewalk? (Round your answers to one decimal place.)