Tell B exactly what’s going on.
That should help with their flexibility on scheduling.
the only thing the airlines like more than hiring you first, is poaching you from another airline.
and your training at airline A will make for some great interview stories.