I'm a visual person, so maybe my explanation will help those who are having difficulty seeing what's going on in this problem:
Given that we have 5 different letters to order, there are 5 places A could be situated - thus, we will devise 5 cases
(1) A __ __ __ __
(2) __ A __ __ __
(3) __ __ A __ __
(4) __ __ __ A __
(5) __ __ __ __ A
We also know that B or D cannot be adjacent to A, so we will adjust our scenarios to reflect such:
(1) A (~B/D) __ __ __
(2) (~B/D) A (~B/D) __ __
(3) __ (~B/D) A (~B/D) __
(4) __ __ (~B/D) A (~B/D)
(5) __ __ __ (~B/D) A
Now, looking at the scenarios, starting with (1), we see that position two will have to be taken by either C or E. This will give us two baseline scenarios to work off of
(a) A C __ __ __
(b) A E __ __ __
Now the remaining three slots available can be occupied by a combination of the remaining 3 letters --> 3!
Thus, for each scenario within main scenario (1) (i.e. A in first slot), we will have 12 combinations (i.e. 6 each)
This will also be the case for (5), since A will be basically flipped to the opposite side --> so we can say right now that (5) will also have 12 combinations
(2) C/E A C/E __ __ --> breaks down into two scenarios again
(a) C A E __ __ --> two combinations (with remaining letters)
(b) E A C __ __ --> two combinations (with remaining letters)
Thus (2) gives us 4 combinations
(4) will also give us 4 combinations for the same reason
(3) __ C/E A C/E __ remains --> break into scenarios once more
(a) __ C A E __ --> 2 combinations possible (with remaining letters)
(b) __ E A C __ --> 2 combinations possible (with remaining letters)
Thus, adding (1)+(2)+(3)+(4)+(5) = 36 combinations