Slope is equal to Rise/Run
8% slope is a 'Rise' of 8 for a 'Run' of 100
I will assume you are asking how long the ramp would be at 8% slope to rise 3 meters
8/100 = 3/x or x = 300/8 is the 'Run' = 37.5
Rise^2 + Run^2 = ramp^2
3^2 + 37.5^2 = ramp^2 Results in a ramp length of 37.62 m