Replica Sets - RAM usage

How is RAM distributed for the replica sets?

For example when we have a M30 cluster with 8GB RAM - does it mean that each of the “3 data bearing servers” has 8GB or just 8GB in total for all 3?