Here is what I would do: copy the whole animation with "+", "Create Animation" and "Copy Keyframes" selected. But that is just as a backup, you may skip that?
Then, right on the Edit Tab where you are in the screenshot, you have "Change Length" together with the "Length mode". First "Change Length "to 40 seconds, leave the "Crop/Extend (End)" mode and press "Apply". This should cut the last 20 seconds. Then "Change Length" to 10 seconds and change the mode to "Crop/Extend (Begin)". Click "Apply" and you have your 10 seconds.