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