No, they are both incorrect by my understanding of your question use the Pythagorean theorem a^2 + b^2 =c^, therefore, 7^2 +x^2 = 13^2 or 49+x=169 then solve normally 169-49=120 √120 =5
Just look at it this way do 8(1) instead of x and graph that on the x axis then do 4(1)instead of y and graph on the y axis then figure out which numbers you need to keep inputting until you reach 56 on the graph.