Independent variable - The kind of text book used
Dependent variable - Final exam marks
This is because independent variables are the ones you control, usually 2 of them, to see the impact of them.
The dependant variable is dependent on the independent variable and needs to be measurable.