Test logical problem

Hey guys, I have a question, the problem is: I have to do a logical test with 10 Questions that must be answered, the person has to get 7/10 right to be validated, I made a forms on clickup with multiple choice, and I did no make a Webhook that receives this data, but I need a method that receives these custom fields, compares it with the template, and IF it gets at least 7/10 right, edit the task as approved.

My problem is only in this comparison.