One month Ahmad rented 3 movies and 2 video games for a total of $22. The next month he rented 5 movies and 6 video games for a total of $52. Find the rental cost for each movie and each video game.