I assume we're not replacing, like many do. Take a bite to see what it is and then put it back.
What's the prob. of getting a nut the first time?. 5/40
The second time?. 4/39
The other parts are similar. Give them a go.
For part ii, find the prob. of none and subtract from 1.