Yeah, the title isnt very describing because I wasn't sure what to call it

The diagram is the one shown below:

Question 1:

Using the cosine rule, show that the lenght of AB is

I don't even know what the question means.

So any help with that would be appreciated.

And then there's question no. 2:

Find the lenght of BP

Thanks in advance