You can refer the following problems:
A cache memory needs an access time of 30 ns and main memory 150 ns, what is the average access time of CPU (assume hit ratio = 80%)?
The answer is 60 ns
What hit ratio is required to reduce the effective memory access time from 200 ns to 140 ns if the cache access time is 20 ns?
The answer is 40%
In both the problems they have given the average (or effective) memory access time as
Effective memory access time = (hit rate x cache access time) + { miss rate x (cache access time + memory access time)}
But in the present problem, they have not considered the access time of the previous levels. Why?