Answer
A. The events are simultaneous.
B. Event B occurs first.
Work Step by Step
A. In the rocket's frame of reference, the light travels equal distances to 2 stationary walls.
B. In the Earth's frame of reference, the back wall is rushing toward the light source, so the light reaches it first.