Hello, thank you for taking the time to post your question!
The key on this type of question is that you want to set up an expression that represents the given information … so if we use “x” to represent the original price, we know that it has a markup on it of 40% … that makes the underlying equation here
x + 0.4x = 107 since the selling price is $107
solving that algebraically for x then I get
1.4x = 107
x = 76.43
so the bookstore paid $76.43 for this book
I hope that helps get you moving in the right direction! Feel free to reach out if you have any additional questions beyond that :)