Consider right triangle ΔABC with legs AC and BC and hypotenuse AB. Draw the altitude CD.
1. Theorem: The length of each leg of a right triangle is the geometric mean of the length of the hypotenuse and the length of the segment of the hypotenuse adjacent to that leg.
According to this theorem,

Let BC=x cm, then AD=BC=x cm and BD=AB-AD=3-x cm. Then

Take positive value x. You get

2. According to the previous theorem,

Then

Answer: 
This solution doesn't need CD=2 cm. Note that if AB=3cm and CD=2cm, then

This means that you cannot find solutions of this equation. Then CD≠2 cm.
Answer:
$20.63 if you tip on the pre-tax amount
Step-by-step explanation:
You pay $12.99 for the pizza, plus the 8% tax on the pizza, plus the 20% tip of the cost of the pizza, so if you tip on the pre-tax amount, you pay
$12.99(0.08) = $1.04 in sales tax
$12.99(0.2) = $2.60 for the tip
and $4 delivery charge,
so you pay a total of
$12.99 + $1.04 + $2.60 + $4 = $20.63
10 equal parts. that is the answer