A hint:

there are two amounts, the smaller, S, and the larger, L.
When asked to "write x for the amount that's in your chosen envelope" what does x equal?