For g(x), its is simply a line with a slope of 5, that has a y intercept of 0. For every x value, multiply by 5 for the coresponding y value. For its inverse, g^-1(x), simply interchange the the domain (x values) and range (y values) with each other. This is essentially just making it 1/5x.