Query question "The inner product of $(x,y)$..." [826]

https://www.gregmat.com/problems/quant?problem=the-inner-product-of-xy


how did you simplify the final equation to 5?