Hey mate ,
The ratio of Cylinder A to Cylinder B can be find by following steps ,
Volume of Cylinder A : Volume of Cylinder B
πr²h : πR²H
- putting the known values , and cancelling same terms on both the sides
4 : 8 ( as π and radius can be cancelled because they are same on both the sides)
Ratio :- 1:2