$25 for each passed test and fined $50 for each failed test passed 7 times as he failed and he had $375.

how many tests did he pass?

See the first related question below.