p(allele for the frequency of straight hair) and q(the frequency for curly hair). Here is an article that should help further explain hair phenotypes!
hetech.org/ask-a-geneticist/three-equally-represented-phenotypes
1.6m questions
2.0m answers