Square dance chasing brother teaching

If the distance to school is X, then my brother's speed is X/30, his speed is X/20, his speed is X/20-X/30, and his brother left five minutes earlier than X/30*5, so the time for his brother to catch up is (X/30 * 5)/(X/20-X/30).