Since we have the answers, we can just go through the numbers and substitute them for x and see if we get 23.
Starting with your answer, you said the answer was 3.
If we substitute all the x’s with 3, then we end up with 23 if we add all the sides.
(This means your original answer, 3 , is correct.)