The Dallas Cowboys starting at the 20 yard line, ran two plays. The first play gained 10 yards, and after the second play the ball was placed at the 50 yard line. How many yards they gain on the second play?