Post ALL of your code. It appears that you are logging in the wrong place, still. Counting A bees, counting B bees, and logging A and B bees are (supposed to be) independent activities.
I suggest that you create a function, countA(), containing the code to see if a bee is in the A station.
I suggest that you create a function, countB(), containing the code to see if a bee is in the B station.
I suggest that you create a function, log(), containing the code to log the bee activity.
Then, loop() would be far simpler:
void loop()
{
countA();
countB();
log();
}
Here, you can see that the three activities are completely independent, and there is no possibility of doing it any other way except by calling log() from one of the other functions.
You probably need lastEventA and lastEventB, not just lastEvent.