Let's use a system of equations to solve the problem.
Let x be the number of small cards sold, and y be the number of large cards sold.
From the problem, we know that:
x + y = 25 (the total number of cards sold is 25)
3x + 5y = 95 (the total amount collected is $95)
We can use the first equation to solve for x in terms of y:
x = 25 - y
Substituting this into the second equation, we get:
3(25 - y) + 5y = 95
Simplifying and solving for y, we get:
75 - 3y + 5y = 95
2y = 20
y = 10
So the student sold 10 large cards.
Substituting this into x + y = 25, we get:
x + 10 = 25
x = 15
So the student sold 15 small cards.
Therefore, the student sold 15 small cards and 10 large cards.