Bobby and Jane are playing video games. Bobby's score is three times the difference between Jane's score and 5. The sum of their scores is 17. If x represents Janes score, write the equation that correctly represents the situation?