Reference

Luke 1

Zechariah and Mary both questioned Gabriel.  Zechariah was taught a lesson about doubt when he was given at least 9 months of silence to think about his mistake. But Mary got an answer.  What's the difference?