As one of the groundskeepers at Gardens, Tim planted 86 myrtle trees along both sides of the entrance driveway. Of the trees he planted, about 34% had white flowers and the rest had pink flowers. How many of the trees that Tim planted had white flowers?
A. 29
B. 40
C. 52
D. 57