A recreation center charges nonmembers $3 to use the pool and $5 to use the basketball courts. A person pays $42 to use the recreation facilities 12 times. How many times did the person use the pool?