A function g(x) is defined as shown.
g(x) = StartLayout enlarged left-brace 1st Row 1st column 2 + 3 x, 2nd column 0 less-than-or-equal-to x less-than 4 2nd Row 1st column 0.5 x + 10, 2nd column 4 less-than-or-equal-to x less-than 8 3rd Row 1st column 16, 2nd column x greater-than-or-equal-to 8 EndLayout
What is the value of g(4)?