For buildable objects, the quality is almost always calculated as such:
-The qualities of items in the individual item types are averaged arithmetically. -The resulting average qualities of the various types are also averaged arithmetically -- often with some weights on items that should be "obviously" more important (like the iron in iron plows) -- to create the quality of the built object.