Imani has three more pencils than twice the number of pencils that Miguel has. Together, Imani and Miguel have a total of 87 pencils. How many pencils does Miguel have?

A.42
B.45
C.28
D.29