The function f(x) = 3x − 2 represents the altitude of a hot air balloon, where x is the time in minutes. The function g(x) = x2 − 1 represents the time in minutes, where x is the height in thousands of feet of the hot air balloon. What is the value of f[g(5)]?