On a multiplication facts test, Samantha had to know the facts from 1-12. She earned 3 points for every fact she solved correctly and used a 10 extra points ticket that she previously received from her teacher. Which equation can be used to find p, the total number of points Samantha earned for solving f facts correctly?