Inverse Function Example 5

Example 5

If g:xmxx3,x3 and g1(5)=14. Find the value of m.