With how many different ways can Adriana be dressed...???? Adriana will be examinated in $5$ subjects, one at each day.She has $5$ dresses in different colors: red-blue-green-white-yellow. 
On Monday she does not want to wear the blue or green one.
On Tuesday, she does not wear the red or green one.
On Wednesday,she does not wear the  blue, white or yellow one. 
On Friday ,she does not wear the white one. 
With how many different ways can Adriana be dressed,if she does not want to wear the same dress more than once? 
Can you tell me how I could solve the above exercise? 
EDIT: I tried to solve it using a diagram.

So,there are $18$ ways that she can be dressed..Could you tell me if it is right?
 A: In this case, a simple exhaustive tree-based counting, as in your question or in 5xsum's answer, seems the more direct way.
For a general approach:
Write a 5x5 matrix, with weekdays in columns and colors in rows. Place a 1 where an assignment is allowed, a 0 otherwise. 
    Mo Tu We Th Fr
 R  1  0  1  1  1 
 G  0  0  1  1  1 
 Y  1  1  0  1  1 
 W  1  1  0  1  0 
 B  0  1  0  1  1 

Then the problem is equivalent to counting the number of placements of 5 non-attacking rooks over the restricted checkboard (zeroes forbidden). This can be attacked via rook polynomials, or via the permanent (sort of a determinant without the signs) of the matrix (this is not very easy to compute, though).
In Octave, with code from here: 
 function y=permanent(A)

 [m,n]=size(A);
    if n==1
        y=A;
    else
        for k=2:n
     P=ones(1,k);
     for i=1:k
         SubA=A([1:k-1],[1:i-1 i+1:k]);
         P(i)=permanent(SubA);
     end
     y=A(k,1:k)*P';
        end
    end
 endfunction

> M = [1 0 1 1 1 ; 0 0 1 1 1 ; 1 1 0 1 1 ; 1 1 0 1 0 ; 0 1 0 1 1]
M =

   1   0   1   1   1
   0   0   1   1   1
   1   1   0   1   1
   1   1   0   1   0
   0   1   0   1   1
> permanent(M)
ans =  18

A: I would first focus on wednesday, since the can only wear the red and green dresses, giving her $2$ choices. Whichever dress she picks, she then still has $3$ options for tuesday, but then it gets complicated. I will only solve one of the six possibilities here, namely picking red on wednesday and blue on tuesday.


*

*She can then pick white on monday and green or yellow on friday (and the other on thursday), giving $2$ options.

*She can pick yellow on monday, leaving only green for friday and white for thursday, so there is only one option here.


This means that the possibility of red on wednesday and blue on tuesday only leaves $3$ clothing options for the rest of the week. Now, repeat the process for the other $5$ options.
A more mathematical approach would probably consider the principle of exclusion and inclusion. Let $A_n$ denote the set of all dress combinations that satisfies the demands for day $n$. For example, $|A_1| = 3\cdot 4\cdot 3\cdot 2\cdot 1$. Now, calculate $$\left|\left(\bigcap_{i=1}^n A_i\right)^c\right| = \left|\bigcup_{i=1}^nA_i^c\right|$$ using the principle of exclusion and inclusion. It takes a while, but it will get you there.
