If this first answers correct what is the answer to the second question? Are they even connected?

Answer:
see below (I hope this helps!)
Step-by-step explanation:
9) We know that the perimeters of the square and triangle are equal so to find x, we can write:
4(x - 5) = x + x + 12
4x - 20 = 2x + 12
2x = 32
x = 16
10) To find the perimeter, we can substitute x = 16 into 4(x - 5) which would be 4(16 - 5) = 4 * 11 = 44.