If the output of this function is 24, what was the input? That is, if f(x) = 24, then what was x? Is there more than one possible input?

format is f(24)=3x-1

what is the answer? and how would I get that answer?