Pete paid a total of $60 for computer game CDs A and B. Then, he sold CD A with 40% margin, and CD B with 30% margin. He made a profit of $22. What was the cost of each game? Hint: system of equations