Answer:
as in motor generaror are connected to same shaft then both machines are working with same speed
but number of poles are different with same speed means both machines are working with different frequencies
we know
frequency F = N*P/120
speed N = 82120F/P
given
motor speed = generator speed
120F1/P1 = 120F2/P2
F1/P1 = F2/P2
output frequency is 25 which is obtained from generator so F2=25
input frequency is 60 which is given to motor soF1=60
60/P1 = 25/P2
60/25 = P!/P2
P1/P2 = 12/5
multiply and divided by 2 becuase poles are even
P1/P2 = 12*2/5*2
=24/10
P1= 24 poles a
P2 =10 poles we get 25 hz frequency from 60 hz frequency