Take one note from the envelope marked $15. If it is a $5 the other note left inside must also be a $5, and thus the envelope marked $20 must contain a $5 and a $10. Same procedure if the note picked is a $10.