If the combined cost of 3 books and 4 pens is $29 and the cost of 2 books and 5 pens is $28, what is the cost of each book and each pen? Let's think step by step and output the final answer within \boxed{}.
user