I know this sentence is grammatically wrong: If he didn't know what to do, he would have asked us.
Which is correct between these two:
If he didn't know what to do, he should ask us. OR
If he didn't know what do do, he should have asked us.
Or are both of these sentences still wrong?
Thank you very much