Three types of pencils, J, K and L, cost $0.05, $0.10, and $0.25 each, respectively. If a box of 32 of these pencils costs a total of $3.40 and if there are twice as many K pencils as L pencils in the box, how many J pencils are in the box?
A. 6
B. 12
C. 14
D. 18
E. 20