Samantha was training to play basketball. She threw the ball 19 times. Gabrielle wrote down all Samantha's throws and for all the ones who got in the basket she added 5 points. For all the throws that weren't successful, she got rid of 3 points. At the end Samantha got 55 points. How many times did Samantha throw the ball in the basket successfully?