This will all depend on your Moodle version.
I would first check the documentation: http://docs.moodle.org/en/Grades
Aggregations: http://docs.moodle.org/en/Grade_categories ( One can set the aggregation method to Weighted Mean, and then he will be able to enter weights for your grade items)