I think the activity below does what you were looking for.
In your correct = definition you have (not(f1=1) and not(f1=2) and not(f1)=3 and ratio=2) but I believe you mean for that to be (not(f1=1) and not(f1=2) and not(f1=3) and ratio=2)
I don’t know why you can’t include the CL code for the ratio script here on the forum without it showing that “Extra open…” error message. I am getting the same message, so I guess you’ll have to see what I used in the CL of the activity linked above.
If you want to include code on the forum that displays correctly, enclose it using triple backticks (the apostrophe like mark by the “1” key). You can use it inline, or on the lines before and after a block of code, which is really handy for copying it!
f1 = t6.cellNumericValue(4,1)
f2 = t6.cellNumericValue(4,2)
ratio = numericValue(`\frac{${f2}}{${f1}}`)