What is the version of the following sentence with correct punctuation?

511 Hiram king of Tyre sent messengers to David and cedar trees and carpenters and masons and they built David a house
5:11 Hiram king of Tyre sent messengers to David, and cedar trees, and carpenters, and masons; and they built David a house.