Text this: On the solvability of a variational inequality problem and application to a problem of two membranes