Compute the optimal choice for a consumer with the following utility function:
$$u(x_1, x_2) =\max \{\min(2x_1, x_2), \min(x_1, 2x_2)\}$$
I'm familiar with computing optimal choice for perfect complements but this has 2 expressions and I'm stumped with how to go about doing this. I'd also appreciate if anyone could explain what exactly is happening in a function like this.