(b) The dot product of two vectors A and B is defined as A · B = |A||B|cosθ, where θ is the angle between the two vectors. Based on this definition, show that when A = Ax + Ay and B = Bx + By, the dot product between the two vectors is given by A · B = AxBx + AyBy.