As rope is fixed at both ends so at both fixed ends there will be two nodes and rest of two will be in between of them. It is given that rope has four nodes, therefore length of rope L=3λ2
but given that L=6m
so, 6=3λ2
or λ=4m
now frequency f=vλ (given v=40m/s)
f=404=10Hz