If the last term of A.P is 40, what is the number of term.

How would I know? I have no idea what a or d is.