A)FCFS:(20-10) + (22-10) + (22-2) + (40-2) + (40-6) + (38-6) = 146
But seek time is 6ms per cylinder,So total seek time = 146 * 6 = 876.
B)Closest cylinder next:(22-20) + (22-10) + (10-6) + (6-2) + (38-2) + (40-38) = 60
So total seek time = 60 * 6 = 360.