Need to find out how many answers I got correct out of 40 questions. I ended with a zero at the end .5 points were given fr the correct answer while 3oints were deducted or the wrong answer

If x were correct, then (40-x) were wrong.

Assuming you answered all 40 questions,

x/2 - 3(40-x) = 0