Blender beginner here. I want to merge 2 selected faces seen on this imag but when I do that with F then the result will be on image below. Dissolving faces doesn't do anything in this case.
This is what it looks like before trying to add them together


