One month Sam rented 3 movies and 5 video games for a total of $32. The next month, he rented 12 movies and 2 video games for a total of $29. Find the rental cost for a movie and a video game.