Planes are to be formed in space with the help of 3 points.
Planes to be formed out of ′p′ points = pC3
Planes to be formed out of ′q′ points = qC3
But ′q′ points are in single plane. Hence, these points cannot form a distinct plane.
∴ Total Number of planes =pC3−qC3+1
∴ Total no. of planes =p(p−1)(p−2)6−q(q−1)(q−2)6+1