enter image description here
the first pic is the question, the second one is the solution, could anyone tell me am I right?