For the first question, we have four unknowns: Cost of a book, Cost of a calculator and the number of books and the number of calculators. However, we do have relationships between the cost of books and calculators and the ratio of books to calculators. Given this, for me the first method that comes to mind is a combination of number x value and simultaneous equations.
For the second question I would follow the same approach that you have. I will post my solution shortly.
Update: I have posted another solution to this question below, which does not use equations and may be easier to understand.