A cannabinoid is half terpene and half polyketide, and the two halves come from different pathways. The terpene half is the one B1 opens and NADPH from B3 drives, ending in GPP, ten carbons long. The polyketide half runs on coenzyme A, which is what B5, pantothenic acid, becomes. The name comes from the Greek for from everywhere, because Roger Williams, who identified it in 1933, found it nearly everywhere he looked.
Coenzyme A carries the pieces: acetyl-CoA, malonyl-CoA and hexanoyl-CoA. Biotin, B7, is bound to the enzyme that turns acetyl-CoA into malonyl-CoA, adding a carboxyl group from bicarbonate. One hexanoyl and three malonyl units then fold into olivetolic acid, and the carbons biotin added fall away again as CO2. The carriers are used again and again, so they make the cannabinoid possible without becoming part of it. A prenyltransferase joins GPP to olivetolic acid to make CBGA, and THCA synthase or CBDA synthase, each holding FAD from B2, finishes the job.
The varins, such as THCV, follow the same plan from a shorter acid, divarinic acid, so their path splits before CBGA. Ask whether B vitamins are involved in cannabinoids, Nik says, and the better question is which step you want to talk about.