What is the length of AB?

Answer:
Answer will be C. 6
hope this is helpful ^_^
please mark me as brainliest if you want.
thank you