Number of different tripeptides that can be formed from the amino acids glycine, alanine, and valine if each is used only once in each tripeptide is _____.
A) 6
B) 12
C) 18
D) 24