If I had had time, I would have visited the museum.(Type 3)
The conditional
Reformulation using “if” : Had I had time, I would have visited the museum.