As far as I know, it's not correct to use two different subjects with participle clauses. Here in the following sentences, two different subjects are used. Could I understand why?
1- I was beginning to get a migraine with the students all talking at the same time.
2- With it being Sunday in Switzerland, we couldn't find any shops open.
3- There being no money left, we had to start making our way home.
4- It being too late to get a train, we took a taxi.
Thank you in advance.