Total Steps =60

lets say total steps = x

First he climbs up to the middle step , i.e. x/2

Then he climbs up 8 steps, i.e. x/2+8

Then he walks down 12 steps i.e. x/2+8-12

Then he takes one step up i.e. x/2+8-12+1

Now, he walks up the remaining steps 3 at a time which only takes him 9 paces. i.e. 3X9=27

Equating both the sides,

x/2+8-12+1 = 27

or, x/2 - 3 =27

or, x/2 = 30

thus, x=60

Hence total steps were 60