All we need to do is to find out how much is worth one yard in both fabrics, so we divide $15.00 by 2 and $37.50 by 5:
$15.00 ÷ 2 = $7.50 per yard
$37.50 ÷ 5 = $7.50 per yard
As both prices per yard are the same, the answer is: Yes, these fabrics have the same unit cost.