We know the ratio from gifts to books to cards is 4:3:9. We know that there are 45 books sold. Thus, 45/3=15. Multiply each term in the constant ratio by 15. So, the ratio is now 60:45:135. Thus, they sold \(\boxed{60}\) gifts, and \(\boxed{135}\) cards. There total would be \(\boxed{195}.\)
.