Let x be the number of courses worth 3 credits that the student completed.
Then, the number of courses worth 4 credits that the student completed would be 16 - x.
Since each course worth 3 credits contributes 3x credits and each course worth 4 credits contributes 4(16-x) credits, the total number of credits earned by the student can be represented by the equation:
3x + 4(16-x) = 54
Expanding and simplifying the equation:
3x + 64 - 4x = 54
64 - x = 54
-x = -10
x = 10
Therefore, the student completed 10 courses worth 3 credits.
This solution is obtained by using the given information about the total number of courses and the total number of credits earned by the student. By setting up an equation and solving for the number of courses worth 3 credits, we can find the answer.