Carl scored a total of 24 points by making 6 two-point baskets and some three-point baskets. Which equation can be used to find the number of three-pointers he scored, and how many three-point shots did Carl score?
A. 3p + 12 = 24
Carl made 12 three-point baskets.
B. 3p + 12 = 24
Carl made 4 three-point baskets.
C. p + 6 = 24
Carl made 18 three-point baskets.
D. p + 6 = 24
Carl made 30 three-point baskets.