Answer
$24$
Work Step by Step
The number of ways to select the second joke: $4$ (any of them can be apart from the last and first)
The number of ways to select the third joke: $3$ (any of them can be apart from the first, second and last)
The number of ways to select the fourth joke: $2$ (any of them can be apart from the first, second or last)
Then the fifth joke is the one who is not the first, second, third, fourth or last.
The first and last joke is fixed.
Number of different ways to schedule the appearances:$1\cdot4\cdot3\cdot2\cdot1\cdot1=24$