This is a problem in binominal probability. Either the rented film is a comedy or is not a comedy (binary outcomes). the probability that the rented film is a comedy is 52%.
You must calculate and add together three probabilities to derive a final answer:
binompdf(7,0.52,0), binompdf(7,0.52,1) and binompdf(7,0.52,2).
Can you do this? Let me know if you need further help with this problem.