The independent variable is the test hours that he studies; because they are not affected by any of the other variables. The dependent variable is the test score; because the amount of the test score depends on the variable of the studied hours.
t=test score h=hours studied
t+h3
Not sure about the equation though. Might wanna check that. Hope this helps!