Operation A is shown here.
Operation B wouldn't happen because the relay base I was using was faulty and I couldn't replace it in time.