Can anyone give me some hints to solve this problem?
Assume Lebesgue measure on $\mathbb{R}^2$ and $\mathbb{R}$. Suppose that $f: \mathbb{R}^2 \rightarrow \mathbb{R}$ is a measurable function such that for almost all $x_1 \in \mathbb{R}$ the function $t \rightarrow f(x_1,t)$ is constant and also for almost all $x_2 \in \mathbb{R}$ the function $s \rightarrow f(s,x_2)$ is constant. Show that the function $f$ is constant almost everywhere .
Hint: Consider the sets where the function is not equal to the certain constants from the two described functions. What is it’s measure?
Now consider the subset of $\mathbb{R}^2$ which is not equal to either constants. What is that measure? ($f$ does not need to equal both of the constants at the same time, you can create counter examples)