This is your original equation. I'll replace your question mark with an x instead:
Now, solve by isolating x:
|\(23-46=40-x\)||Simplify the left hand side of the equation|
|\(-23=40-x\)||Subtract 40 on both sides|
|\(-63=-x\)||Multiply by -1 on both sides|
x=63 is your final answer.