
case (i):
the output of the first machine (

) is the input of the second machine, so we plug (

) or g(x) in function h and calculate, as follows:

, now h is the function which squares whatever the input is and subtracts 6:

case (ii): we plug h in g:

a.
case1

x=16
so for x=16, h(g(x))=5
case2



x=-6 or x=6
for both these values, g(h(x))=5
so since her input was 6, the order was g(h(x)), that is h(x) was the input of g(x)
b.
case1

x=11-5=6,
so for x=6, h(g(x))=-5
case2

the square root cannot be a negative number
Answer:
A. order is g(h(x))
B. yes, for h(g(x)) only