In a video game, a player starts out with p points. The number of points triples because the player collected a golden coin. Then, he earned 3 more points for finding the emerald. The player ends with 18 points. How many points did the player start with?
please quick I will give brainliest