You have probably been taught how to do basic math at school, right? HQ mats are just a flat amount added to quality bar and nothing scales with it. So if you simply add whatever quality you get from HQ mats to the quality you got in trial synth the result will be your final quality. They are kinda big numbers sometimes but it's simple addition, I believe you can handle it.