This is the third conditional. To omit 'if' and use inversion, we start with 'Had'.
Answer: Had we taken a taxi, we wouldn't have been late.