For better representation, I think the function is written as:
B(x) = 40.00 - 0.08x
This is much more comprehensive. The variable x represents the number of prints. So, if x=40 prints, we replace this to the x in the equation to find the balance B.
B = 40 - 0.08(40)
B = $36.8