So, you have to figure the permutation of each card.
You have hte permutation of 3 of 4 kings possible in a hand of 5 cards;
P(4,3)
and then the permutation of 2 of 4 queens possible in a hand of 5 cards;
P(4,2)
And the Rule of product says those answers should be multiplied;
P(4,3) * P(4,2)
P(n,m) = n!/(n-m)! or in Excell simply =PERMUT(n,m)
So, we get 24 * 12 = 288.
If order did not matter then it would be a matter of combination and not permutation.
C(4,3) * C(4,2)
C(n,m) = P(n,m)/m! or in Excel =combin(n,m)
4 * 6 = 24 different unordered combinations possible.
Next time do your own math homework.