I think it's better to define clearly frames, space-time events with their coordinates and use the Lorentz transformation to find the relations between them. I believe that to derive results intuitively using length contraction and/or time dilation is not so safe.
So, let the primed $\;S'\;$ denote the frame of the bus moving with speed $\;v=0.9\,c\;$ as in Figure 1. We have 3 space-time events $\;\mathrm{A,B,C}\;$ :
\begin{align}
\mathrm{A} & =\text{shooting light beams to both directions from the middle of the bus}
\tag{01.A}\\
\mathrm{B} & =\text{the backwards light beam strikes the back of the bus}
\tag{01.B}\\
\mathrm{C} & =\text{the forwards light beam strikes the front of the bus}
\tag{01.C}
\end{align}
Also, let the unprimed $\;S\;$ denote the rest frame of Eric as in Figure 2 (1) .
The space-time coordinates of events in the primed frame $\;S'\;$ of the bus are :
\begin{align}
\left(x'_\mathrm{A},t'_\mathrm{A}\right) & =\left(0,0\right)
\tag{02.A}\\
\left(x'_\mathrm{B},t'_\mathrm{B}\right) & =\left(-d,d/c \right)
\tag{02.B}\\
\left(x'_\mathrm{C},t'_\mathrm{C}\right) & =\left(+d,d/c \right)
\tag{02.C}
\end{align}
Events $\;\mathrm{B,C}\;$ are simultaneous in the system of the bus.
The space-time coordinates of these events in the unprimed Eric's frame $\;S\;$ are :
\begin{align}
\left(x_\mathrm{A},t_\mathrm{A}\right) & =\left(0,0\right)
\tag{03.A}\\
\left(x_\mathrm{B},t_\mathrm{B}\right) & =\left(???,??? \right)
\tag{03.B}\\
\left(x_\mathrm{C},t_\mathrm{C}\right) & =\left(???,??? \right)
\tag{03.C}
\end{align}
We suppose that at the shooting time moment ($t'_\mathrm{A}=0$) Eric is standing opposite to the middle and outside the bus and is setting there the origin of his space-time events $\left(x_\mathrm{A},t_\mathrm{A}\right) =\left(0,0\right)$.
Now, the Lorentz transformation between frames$\;S,S'\;$ expressed with differences is
\begin{align}
\Delta x & =\gamma\left(\Delta x'+v\,\Delta t'\right)
\tag{04.1}\\
\Delta t & =\gamma\left(\Delta t'+\dfrac{\,v\,}{c^2}\Delta x'\right)
\tag{04.2}
\end{align}
So
\begin{align}
\Delta x_\mathrm{BA} & =\gamma\left(\Delta x'_\mathrm{BA}+v\,\Delta t'_\mathrm{BA}\right) \Longrightarrow x_\mathrm{B}-x_\mathrm{A}=\gamma\left[\left(x'_\mathrm{B}-x'_\mathrm{A}\right)+v\,\left(t'_\mathrm{B}-t'_\mathrm{A}\right)\right] \Longrightarrow
\nonumber\\
x_\mathrm{B} & =\gamma \left(-d+v\,d/c\right)=-\dfrac{c}{c+v}\dfrac{d}{\gamma}=-\sqrt{\dfrac{c-v}{c+v}}\,d=-\sqrt{\dfrac{1}{19}}\,d\approx -0.2294\,d
\tag{05.1}\\
\Delta t_\mathrm{BA} & =\gamma\left(\Delta t'_\mathrm{BA}+\dfrac{\,v\,}{c^2}\Delta x'_\mathrm{BA}\right)\Longrightarrow t_\mathrm{B}-t_\mathrm{A}=\gamma\left[\left(t'_\mathrm{B}-t'_\mathrm{A}\right)+\dfrac{\,v\,}{c^2}\,\left(x'_\mathrm{B}-x'_\mathrm{A}\right)\right] \Longrightarrow
\nonumber\\
t_\mathrm{B} & =\gamma \left(\dfrac{\,d\,}{c}-\dfrac{\,v\,}{c^2}\,d\right)=\dfrac{1}{c+v}\dfrac{d}{\gamma}=\sqrt{\dfrac{c-v}{c+v}}\,\dfrac{\,d\,}{c}=\sqrt{\dfrac{1}{19}}\,\dfrac{\,d\,}{c}\approx 0.2294\,\dfrac{\,d\,}{c}
\tag{05.2}
\end{align}
and on the same footing
\begin{align}
\Delta x_\mathrm{CA} & =\gamma\left(\Delta x'_\mathrm{CA}+v\,\Delta t'_\mathrm{CA}\right) \Longrightarrow x_\mathrm{C}-x_\mathrm{A}=\gamma\left[\left(x'_\mathrm{C}-x'_\mathrm{A}\right)+v\,\left(t'_\mathrm{C}-t'_\mathrm{A}\right)\right] \Longrightarrow
\nonumber\\
x_\mathrm{C} & =\gamma \left(d+v\,d/c\right)=\dfrac{c}{c-v}\dfrac{d}{\gamma}=\sqrt{\dfrac{c+v}{c-v}}\,d=\sqrt{19}\,d\approx 4.3589\,d
\tag{06.1}\\
\Delta t_\mathrm{CA} & =\gamma\left(\Delta t'_\mathrm{CA}+\dfrac{\,v\,}{c^2}\Delta x'_\mathrm{CA}\right)\Longrightarrow t_\mathrm{C}-t_\mathrm{A}=\gamma\left[\left(t'_\mathrm{C}-t'_\mathrm{A}\right)+\dfrac{\,v\,}{c^2}\,\left(x'_\mathrm{C}-x'_\mathrm{A}\right)\right] \Longrightarrow
\nonumber\\
t_\mathrm{C} & =\gamma \left(\dfrac{\,d\,}{c}+\dfrac{\,v\,}{c^2}\,d\right)=\dfrac{1}{c-v}\dfrac{d}{\gamma}=\sqrt{\dfrac{c+v}{c-v}}\,\dfrac{\,d\,}{c}=\sqrt{19}\,\dfrac{\,d\,}{c}\approx 4.3589\,\dfrac{\,d\,}{c}
\tag{06.2}
\end{align}
For a space-time diagram, see Figure 3.
(1) For convenience Figure 2 has been drawn with scale but with $\;v/c=0.60 (\gamma=1.25)\;$ instead of $\;v/c=0.90 (\gamma=1/\sqrt{0.19}\approx 2.2942)\;$ of the question.
(2)Kinematics:
(a) If two cars 1 and 2 at a distance $\;s\;$ apart start running towards to each other with speeds $\;v_{1}\;$ and $\;v_{2}\;$ respectively, then they will meet each other after time
\begin{equation}
\Delta t =\dfrac{s}{v_{1}+v_{2}}
\tag{a.1}
\end{equation}
at a distance
\begin{equation}
s_{1}=\dfrac{v_{1}}{v_{1}+v_{2}}\;s
\tag{a.2}
\end{equation}
from the starting point of car 1.
(b) If two cars 1 and 2 at a distance $\;s\;$ apart start running with speeds $\;v_{1}\;$ and $\;v_{2}\;$ respectively,where $\;v_{1}>v_{2}\;$, so that the faster car 1 is "hunting" the other car 2, then car 1 will "catch" car 2 after time
\begin{equation}
\Delta t=\dfrac{s}{v_{1}-v_{2}}
\tag{b.1}
\end{equation}
at a distance
\begin{equation}
s_{1}=\dfrac{v_{1}}{v_{1}-v_{2}}\;s
\tag{b.2}
\end{equation}
from the starting point of car 1.With $\;v_{1}=c$, $\;v_{2}=v\;$ but $\;s=d/\gamma$=the length-contracted bus half-width $\;d\;$, equations (a.2),(a.1),(b.2) and (b.1) yield equations (5.1),(5.2),(6.1) and (6.2) respectively (see also data in Figure 2).