Let 'x' be the rate of each worker
the work done is equal to the number of workers times rate times time(duration). In this case, you are given with the number of workers, time and work done.
Let's find the rate of each worker.
x(6workers)(14days) = 18 computers
x =  \frac{3}{14} computers/worker/day
since we already have the rate then we will now consider the second situation wherein there are 10 workers and they are to make 30 computers. you are asked to find the duration or the time. using the same concept, you'll have it as:
let 't' be the number of days
10workers( \frac{3}{14} computers/worker/day)t = 30computers
t =  \frac{30(14)}{10(3)}
t = 14 days