Construct a right triangle whose base is 12 cm

Construct a right triangle whose base is 12 cm and sum of its hypotenuse and other side is 18 cm.

image
image