Consider two RV's $X_1$ and $X_2$, independently and uniformly distributed over $[0,1]$.
I want to find the largest possible area $A\subset [0,1]^2$ while keeping the average of $X_1$ and $X_2$ inside of $A$ above a certain level, say $y\in(1/2,1)$. For $y\leq 1/2$, it is easy to see that $A=[0,1]^2$ solves the problem, and that's why I excluded $y$'s below $1/2$.
So, the programming problem should be
$$\max_{A\in[0,1]^2}\int_Adx_1dx_2$$ $$s.t. E[X_1|(X_1,X_2)\in A]\geq y~\textrm{and}\\E[X_2|(X_1,X_2)\in A]\geq y.$$
Is there a general solution to this problem or any reference I can have a look to find similar types of problems?