The correct option is A [ML5T−2]
We know that, physical quantities having same dimension are added or subtracted together.
Therefore, dimension of an2V2 should be same as dimension of pressure P.
⇒[an2V2]=[P]
⇒[a][n2V2]=[P]
⇒[a][L−6]=[ML−1T−2]
⇒[a]=[ML5T−2]
Dimension of a is [ML5T−2]