Sections 212 and 213 extend to a case where—
(a) at the time a court makes a detention order against a person as a child, the person is serving or has been sentenced to serve a term of imprisonment as an adult; or
(b) at the time a court makes an order sentencing a person to a term of imprisonment as an adult, the person is serving or has been sentenced to serve a period of detention as a child;as if a reference in the sections to a period of detention included a reference to the term of imprisonment mentioned in paragraph (a) or (b) .