I came across such a problem in my exercise:
Suppose $f$, $g$ are Riemann integrable on interval $[0,1]$ such that $$\int_0^1f(x)\mathrm{d}x=\int_0^1g(x)\mathrm{d}x=1.$$ Show that there exists some intervals $I\subset[0,1]$ such that $$\int_If(x)\mathrm{d}x=\int_Ig(x)\mathrm{d}x=\frac{1}{2}.$$
In my textbook it used some method that I never came across before, which involved the application of something like "winding number". I was wondering whether there are some "elementary method" to solve this, I know some real analysis (I finished reading Rudin's RCA before Chapter 6) and I wonder if some opinions in measure theory or Lebesgue integral is useful.
I'm looking for any suggestions for this problem. Thanks in advance.