|That is not how you do it.|
You have a couple of options but what you want to accomplish is block their internet access while still having lan access.
You can assign static ips to the B group of pcs but don't include a gateway entry.
You can setup mac filtering [associated a mac address with an ip address in the routers dhcp server] then set the schedule to deny internet access to these mac addresses.
Answers are only as good as the information you provide.
How to properly post a question: