During one school year, Billy Bob earned $25 for each Math test he passed and was ined $50 for each Math test he failed. By the end of the school year, Billy Bob passes 7 times as many Math tests as he failed and he had a total of $375. How many tests did he pass?