The rigid bodies A and B of masses 2 kg and 4 kg respectively are rigidly connected to a spring of the constant 400 N/m. The body B rests on a horizontal table, from the rest position, the body A is compressed by 2 cm and then released. Find the frequency of oscillation.