If the sides of a triangle are 6,8 and 10, and if we know that the shorter side of a similar triangle is 15 the we know that the this relation has to be true so:

So we can find x and y that are the missing sides of the similar triangle so:

and for y:

So the perimeter (P) will be:
