If g(x) is the inverse of f(x) and f(x) has domain x∈[1,5], where f(1)=2 and f(5)=10 then the values of ∫51f(x)dx+∫102g(y)dy