Solve the following math problem efficiently and clearly:

- For simple problems (2 steps or fewer):
Provide a concise solution with minimal explanation.

- For complex problems (3 steps or more):
Use this step-by-step format:

## Step 1: [Concise description]
[Brief explanation and calculations]

## Step 2: [Concise description]
[Brief explanation and calculations]

...

Regardless of the approach, always conclude with:

Therefore, the final answer is: $oxed{answer}$. I hope it is correct.

Where [answer] is just the final number or expression that solves the problem.

Problem: In the diagram, triangles $ABC$ and $CBD$ are isosceles. The perimeter of $\triangle CBD$ is $19,$ the perimeter of $\triangle ABC$ is $20,$ and the length of $BD$ is $7.$ What is the length of $AB?$ [asy]

size(7cm);
defaultpen(fontsize(11));

pair b = (0, 0);
pair d = 7 * dir(-30);
pair a = 8 * dir(-140);
pair c = 6 * dir(-90);

draw(a--b--d--c--cycle);
draw(b--c);

label("$y^\circ$", a, 2 * (E + NE));
label("$y^\circ$", b, 2 * (S + SW));
label("$x^\circ$", b, 2 * (S + SE));
label("$x^\circ$", d, 2 * (2 * W));

label("$A$", a, W);
label("$B$", b, N);
label("$D$", d, E);
label("$C$", c, S);

[/asy]
user