I have attempted the question. I am not sure if the proof is valid though. Any comments will be appreciated!

Here it goes:

Let which means we have

Write where the functions and are measurable functions.

Since the measuable function is integrable, it is almost everywhere finite.

Then WLOG we have

from which it follows that

Similarly for , we obtain