Complete the second sentence so that it has a similar meaning to the first one. Use inversion:
They would have got back for the exam, if they hadn’t had a flat tyre.
................................. a flat tyre, they would have got back for the exam.