log(8a/2) = log8 + log a - log 2
The simple rules here are: If logarithms (as in this case) have same basis, factors inside logarithm can be written as sum of logarithms or difference between logarithms (first if factors are multiplying and second if factors are dividing)