Pergunta de entrevista da empresa CloudCover

You have 2 subnets, in one subnet there is a server running and in another a RDS database. How will you allow access from one subnet to another.