Determine o valor de a para que se tenha f(3) = 8 na função dada por f(x) = ax + 1/2