9. When Xiaoyan goes to school, she rides a bike, and when she returns home, she walks, which takes a total of 50 minutes. If she walks both ways, the entire journey would take 70 minutes. Therefore, if Xiaoyan rides a bike both ways, the time needed would be $\qquad$ minutes.
answer: 30