Andrew's math teacher entered the seventh grade students in a math competition there was an enrollment fee of $30 and also an $11 charge for each packet of 10 tests. The total cost was $151. How many tests were purchased?