Five children need to be seated into $5$ seats, but Mike won't sit in the middle, and Johnny can't be seated at the edges.
Since it is rather manageable to count in how many different ways Mike and Johnny can be placed I've done it "by hand" and then multiplied by $3!$ for the remaining children.
$m$ is for Mike, $j$ is for Johnny, $x$ is for the rest
$$ \begin{array}{c} n & \text{s1} & \text{s2} & \text{s3} & \text{s4} & \text{s5} \\ \hline 1 & m & j & x & x & x \\ 2 & m & x & j & x & x \\ 3 & m & x & x & j & x \\ 4 & x & m & j & x & x \\ 5 & x & m & x & j & x \\ 6 & x & j & x & m & x \\ 7 & x & x & j & m & x \\ 8 & x & j & x & x & m \\ 9 & x & x & j & x & m \\ 10 & x & x & x & j & m \\ \end{array} $$
Totaling 10 different permutations times $3!$ for the remaining children which can sit at any spot: $10 \cdot 6 = 60.$
How is this problem supposed to be dealt with in a proper, mathematical, fashion ?
Consider two cases -
Case 1)
Johnny sits in the middle. Hence others can sit in any way they want. Hence the number of ways in this case is $4!=24$
Case 2)
Neither Johnny nor Mike sits in the middle.
Now Johnny has only two choices to sit (2nd and 4th) positions. After selecting places for Johnny Mike is left with 3 places to sit because he is not allowed to sit in middle. So he has 3 choices while the rest can be permuted on left three seats. Hence the number of ways in this case are
Hence the total number of ways the students can be seated in a line satisfying the given restrictions are $36+24=60$
Hope it helped.