what is the ratio of two sides of two squares that have 12 cm and 4cm

Well, you have stated the sides, so obviously

12 : 4
= 3 : 1