There's a problem just like that in walpole/meyers.
You need to break it into two cases, the chest being open or locked.
(.4) + (.6)(3/8)
The .4 is your chance that the chest is open.
The second pair of numbers is the chance it's locked times the chance
you selected a key that will open it.
In walpole they use doors to homes....