Can someone please explain the below paragraphs from section 2.2 in The X3DH Key Agreement Protocol? Please try to explain the whole paragraphs.
1st paragraph: I want to understand how the DH function is working? How is it calculating the shared secret key using public keys?
DH(PK1, PK2) represents a byte sequence which is the shared secret output from an Elliptic Curve Diffie-Hellman function involving the key pairs represented by public keys PK1 and PK2. The Elliptic Curve Diffie-Hellman function will be either the X25519 or X448 function from , depending on the curve parameter.
2nd paragraph: In the first point $F$ is used to identify the type of curve, right? What is the secret key material here? What is the use of HKDF info?
KDF(KM) represents 32 bytes of output from the HKDF algorithm  with inputs:
1) HKDF input key material = F || KM, where KM is an input byte sequence containing secret key material, and F is a byte sequence containing 32 0xFF bytes if curve is X25519, and 57 0xFF bytes if curve is X448. F is used for cryptographic domain separation with XEdDSA .
2) HKDF salt = A zero-filled byte sequence with length equal to the hash output length.
3) HKDF info = The info parameter from Section 2.1.