Hey xods.

Try and expand the output of the gate: remember to apply each operation in the order its given and surround that answer with brackets that feed into the next operation. Once you have the final expression, then expand all the brackets and simplify to check if it is equal to the other answer.