Do you mean the length of the cable?
If so, it would be 13.42ft.
Take the cable as the hypotenuse, and add the squares of 12 and 6 then squareroot them.
Total $ = 2.50x+6
First multiply x by 2.50
Then add 6 to get the total amount spent.
Notice that





so that for each power of 2, there is a pattern of period 4. This means that for integers

, each of

,

,

, and

have the same units digit.
We can write

, and since

, it follows that

and

share the same units digits. So the units digit of

is 8.
$315, i cant give a thorough explanation since i did it all in my head but basically amal gets 5 portions of the money and Salma gets 9, meaning she gets 4 more, so if 4 portions is $252 then it cant be any of the others since they are too low or way too high, $315 is the only reasonable one.