Simple method of three:
X=unknown percentage.
C=your current score
T=the best score for the specific test
X=C/T*100 (in %)
If you know your percentage in the test, and you know the percentage of the test in the total grade, then your contribution to your total grade is
X=final contribution
T=test contribution
S=your score in the test in percentage