50 POINTS
Sam writes on a white board the positive integers from 1 to 6 inclusive, once each. She then writes p additional fives and q sevens on the board. The mean of all the numbers on the board is then 5.3.
What is the smallest possible value of q?