Correct. Let the number of math books and let the number of history books. Then:
(A) (B)
Solve (A) for h:
Substitute into (B):
Multiply, and combine like terms: , so