Linda took her son to the batting cages. For the first 5 minutes, she paid $10 and for each additional minute, she paid $.50. If Linda paid 22$ for her son to go to the batting cages, how much time were they there for?