Hi
In this case, we will need to use Joomla ACL and Joomla Groups plugin to setup it. It contains several steps, I will try to explain directly. If you need more explanations, you can contact me directly on Skype. My Skype nickname is tuanpnves.
1. Go to Extensions -> Plugins Manager, find and publish the OS Membership - Joomla Groups plugin.
2. Go to Users -> Groups, click 4 groups A, B, C, D.
4. Go to Users -> Access Levels, create 4 Access Levels :
- Level A : Only choose Group A
- Level B: Choose Group B
- Level C: Choose Group C
- Level

Choose Group D.
.....
5. Now, edit the subscription plans which you created, you will see a new tab called Joomla Group Settings :
- Set up it so that Plan W will assign subscribers to Group A
- Set up it so that Plan X will assign subscribers to Group A, Group B
- Set up it so that Plan Y will assign subscribers to Group A, Group B, Group C
- Set up it so that Plan Z will assign subscribers to Group A, Group B, Group B, Group C
6. Now, edit the resources you want to restrict, look for access field :
- Set access field of Page A to access level A
- Set access field of Page B to access level B
- Set access field of Page C to access level C
- Set access field of Page D to access level D
After that, it will all working as expected .
Regards,
Tuan