Formal:
* Je m'appelle Pierre et lui, David. (This is the most literal translation and is appropriate in formal settings)
Informal:
* Je suis Pierre et lui, c'est David. (This is a more natural way to say it in informal situations)
* Je m'appelle Pierre et il s'appelle David. (This is also correct and often used in informal situations)
You can also use the contraction "c'est" for "il est" when referring to David:
* Je suis Pierre et c'est David.
It's important to note that the French language often uses the pronoun "lui" to refer to a male subject, even if you've already mentioned their name. This is because it clarifies that you are talking about a different person from the subject of the sentence.