Installing pull chain ceiling fan w/ light fixture. Two brown wires, two black wires, one red at the ceiling junction
I'm guessing you will want the fan to operate by the pull chain and the light to operate by the switch. For clarity, those are black wires and white wires out of the ceiling. The black wire from the fan will get wire nutted to the two black wires from the ceiling. The white wire from the fan will get wire nutted to the two white wires from the ceiling and the red wire from the ceiling gets wire nutted to the blue wire from the fan.

Now the bad news. The pancake box in the ceiling is not rated for a ceiling fan. You will have to replace it with a ceiling fan rated pancake box. you can get them at many home stores or electrical supply stores.