David's chocolate bar is 37% cocoa. If the weight of the chocolate bar is 51 grams, how many grams of cocoa does it contain? Round your answer to the nearest tenth.