(a) To find the total cost of the books plus shipping, we can set up the following equation:
\[ 7b + 6 = 97 \]
Here, \( b \) represents the number of books Sam bought, \( 7 \) is the cost per book, \( 6 \) is the shipping cost, and \( 97 \) is the total cost of the purchase.
(b) Now, we will solve the equation \( 7b + 6 = 97 \).
- Subtract 6 from both sides of the equation:
\[ 7b = 97 - 6 \]
\[ 7b = 91 \]
- Now, divide both sides by 7 to solve for \( b \):
\[ b = \frac{91}{7} \]
\[ b = 13 \]
Therefore, Sam bought 13 books.