If you’re test was such that you scored for a test that represents of your entire mark you would calcuate it by taking 3 quarters of 50 and then dividing by 75:
your overall marks for the unit garnered by this test was 50%
sympy 50/75
sympy 3/4*50/75
> 0.66
> 0.5