How can I weight grades according to their types?

You can weight grades by their types (e.g. 50/50) by activating the “Calculate Average by Grade Types” in the grades settings.

Then you can change the weights in the “Grade Type Weights” menu.

By default all types are weight equally.